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

FIx missing declare

This commit is contained in:
eternnoir 2017-07-01 11:05:14 +08:00
parent 38af4f441b
commit f97bb2f615

View File

@ -215,6 +215,7 @@ class Chat(JsonDeserializable):
first_name = obj.get('first_name') first_name = obj.get('first_name')
last_name = obj.get('last_name') last_name = obj.get('last_name')
all_members_are_administrators = obj.get('all_members_are_administrators') all_members_are_administrators = obj.get('all_members_are_administrators')
photo = None
if 'photo' in obj: if 'photo' in obj:
photo = ChatPhoto.de_json(obj['photo']) photo = ChatPhoto.de_json(obj['photo'])
description = obj.get('description') description = obj.get('description')