From f241ef1eacb9c328e7d02a8a943c29bc8076f5ec Mon Sep 17 00:00:00 2001 From: Vadim Ryazanov Date: Tue, 27 Aug 2019 11:55:14 +0300 Subject: [PATCH] passport_data content type added --- telebot/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index 4d6a041..4975190 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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