mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
deleteMessage returns Ok on success, not Message type
This commit is contained in:
parent
f7cfb98b60
commit
89f515b120
@ -416,7 +416,7 @@ class TeleBot:
|
||||
:param message_id: which message to delete
|
||||
:return: API reply.
|
||||
"""
|
||||
return types.Message.de_json(apihelper.delete_message(self.token, chat_id, message_id))
|
||||
return apihelper.delete_message(self.token, chat_id, message_id)
|
||||
|
||||
def send_photo(self, chat_id, photo, caption=None, reply_to_message_id=None, reply_markup=None,
|
||||
disable_notification=None):
|
||||
|
Loading…
Reference in New Issue
Block a user