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

Let thumb option in Sticker. Api chamged.

This commit is contained in:
eternnoir
2015-08-01 09:55:17 +08:00
parent 8abd3fe140
commit b745088a05
2 changed files with 10 additions and 1 deletions

View File

@@ -265,7 +265,9 @@ class Sticker(JsonDeserializable):
file_id = obj['file_id']
width = obj['width']
height = obj['height']
thumb = PhotoSize.de_json(obj['thumb'])
thumb = None
if 'thumb' in obj:
thumb = PhotoSize.de_json(obj['thumb'])
file_size = None
if 'file_size' in obj:
file_size = obj['file_size']