1
0
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:
Kylmakalle 2017-05-12 01:13:40 +03:00
parent f7cfb98b60
commit 89f515b120

View File

@ -416,7 +416,7 @@ class TeleBot:
:param message_id: which message to delete :param message_id: which message to delete
:return: API reply. :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, def send_photo(self, chat_id, photo, caption=None, reply_to_message_id=None, reply_markup=None,
disable_notification=None): disable_notification=None):