From 6833a16b579db5bfabe75a2efd6fd5eee97ecbc1 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Fri, 3 Jul 2015 09:58:48 +0800 Subject: [PATCH] fix sendChatAction return value bug. API's result will be boolean. --- telebot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 1643252..e549394 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -220,9 +220,9 @@ class TeleBot: :param chat_id: :param action: One of the following strings: 'typing', 'upload_photo', 'record_video', 'upload_video', 'record_audio', 'upload_audio', 'upload_document', 'find_location'. - :return: API reply. + :return: API reply. :type: boolean """ - return types.Message.de_json(apihelper.send_chat_action(self.token, chat_id, action)) + return apihelper.send_chat_action(self.token, chat_id, action) def reply_to(self, message, text, **kwargs): return self.send_message(message.chat.id, text, reply_to_message_id=message.message_id, **kwargs)