mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
feat: Added the field reply_markup to the Message
Added the field `reply_markup` to the Message object
This commit is contained in:
parent
d15cb16bef
commit
6832c33733
@ -385,6 +385,9 @@ class Message(JsonDeserializable):
|
||||
if 'passport_data' in obj:
|
||||
opts['passport_data'] = obj['passport_data']
|
||||
content_type = 'passport_data'
|
||||
if 'reply_markup' in obj:
|
||||
opts['reply_markup'] = InlineKeyboardMarkup.de_json(obj['reply_markup'])
|
||||
content_type = 'reply_markup'
|
||||
return cls(message_id, from_user, date, chat, content_type, opts, json_string)
|
||||
|
||||
@classmethod
|
||||
@ -455,6 +458,7 @@ class Message(JsonDeserializable):
|
||||
self.invoice = None
|
||||
self.successful_payment = None
|
||||
self.connected_website = None
|
||||
self.reply_markup = None
|
||||
for key in options:
|
||||
setattr(self, key, options[key])
|
||||
self.json = json_string
|
||||
|
Loading…
Reference in New Issue
Block a user