From 89f515b12003efab471c9b08e66f037a9cebb997 Mon Sep 17 00:00:00 2001 From: Kylmakalle Date: Fri, 12 May 2017 01:13:40 +0300 Subject: [PATCH] deleteMessage returns Ok on success, not Message type --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 9d201b8..38dfe3c 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -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):