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

passport_data content type added

This commit is contained in:
Vadim Ryazanov 2019-08-27 11:55:14 +03:00
parent 151880f391
commit f241ef1eac

View File

@ -371,6 +371,9 @@ class Message(JsonDeserializable):
if 'poll' in obj:
opts['poll'] = Poll.de_json(obj['poll'])
content_type = 'poll'
if 'passport_data' in obj:
opts['passport_data'] = obj['passport_data']
content_type = 'passport_data'
return cls(message_id, from_user, date, chat, content_type, opts, json_string)
@classmethod