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

All Updating messages methods done.

This commit is contained in:
eternnoir
2016-04-14 15:17:53 +08:00
parent f873658aac
commit 4fe4061a0f
3 changed files with 50 additions and 0 deletions

View File

@@ -466,6 +466,16 @@ class TeleBot:
apihelper.edit_message_text(self.token, text, chat_id, message_id, inline_message_id, parse_mode,
disable_web_page_preview, reply_markup))
def edit_message_replay_markup(self, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
return types.Message.de_json(
apihelper.edit_message_replay_markup(self.token, chat_id, message_id, inline_message_id, reply_markup)
)
def edit_message_caption(self, caption, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
return types.Message.de_json(
apihelper.edit_message_caption(self.token, caption, chat_id, message_id, inline_message_id, reply_markup)
)
def reply_to(self, message, text, **kwargs):
"""
Convenience function for `send_message(message.chat.id, text, reply_to_message_id=message.message_id, **kwargs)`