From f97bb2f6153ec6b53c5de840073c52c2c3fbb88b Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sat, 1 Jul 2017 11:05:14 +0800 Subject: [PATCH] FIx missing declare --- telebot/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telebot/types.py b/telebot/types.py index 6f16c38..dc1c1c4 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -215,6 +215,7 @@ class Chat(JsonDeserializable): first_name = obj.get('first_name') last_name = obj.get('last_name') all_members_are_administrators = obj.get('all_members_are_administrators') + photo = None if 'photo' in obj: photo = ChatPhoto.de_json(obj['photo']) description = obj.get('description')