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:
parent
151880f391
commit
f241ef1eac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user