1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

fix sendChatAction return value bug. API's result will be boolean.

This commit is contained in:
eternnoir 2015-07-03 09:58:48 +08:00
parent 8187e6b8fd
commit 6833a16b57

View File

@ -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)