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

fix: reply_markup does not change content_type

This commit is contained in:
meoww-bot 2020-09-02 09:12:49 +08:00 committed by GitHub
parent decad450d0
commit 32a9e65ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,6 @@ class Message(JsonDeserializable):
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