Skip to content

Commit 89f515b

Browse files
committed
deleteMessage returns Ok on success, not Message type
1 parent f7cfb98 commit 89f515b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def delete_message(self, chat_id, message_id):
416416
:param message_id: which message to delete
417417
:return: API reply.
418418
"""
419-
return types.Message.de_json(apihelper.delete_message(self.token, chat_id, message_id))
419+
return apihelper.delete_message(self.token, chat_id, message_id)
420420

421421
def send_photo(self, chat_id, photo, caption=None, reply_to_message_id=None, reply_markup=None,
422422
disable_notification=None):

0 commit comments

Comments
 (0)