mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix edit reply markup return bool.
This commit is contained in:
parent
ea92e8696e
commit
89cf2658ae
@ -544,16 +544,16 @@ class TeleBot:
|
|||||||
return types.Message.de_json(result)
|
return types.Message.de_json(result)
|
||||||
|
|
||||||
def edit_message_reply_markup(self, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
|
def edit_message_reply_markup(self, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
|
||||||
return types.Message.de_json(
|
result = apihelper.edit_message_reply_markup(self.token, chat_id, message_id, inline_message_id, reply_markup)
|
||||||
apihelper.edit_message_reply_markup(self.token, chat_id, message_id, inline_message_id, reply_markup)
|
if type(result) == bool:
|
||||||
)
|
return result
|
||||||
|
return types.Message.de_json(result)
|
||||||
|
|
||||||
def edit_message_caption(self, caption, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
|
def edit_message_caption(self, caption, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
|
||||||
result = apihelper.edit_message_caption(self.token, caption, chat_id, message_id, inline_message_id, reply_markup)
|
result = apihelper.edit_message_caption(self.token, caption, chat_id, message_id, inline_message_id, reply_markup)
|
||||||
if isinstance(result, bool):
|
if type(result) == bool:
|
||||||
return result
|
return result
|
||||||
else:
|
return types.Message.de_json(result)
|
||||||
return types.Message.de_json(result)
|
|
||||||
|
|
||||||
def reply_to(self, message, text, **kwargs):
|
def reply_to(self, message, text, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user