Skip to content

Commit

Permalink
Fix regression on Telegram objects with thumb properties
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrotoledo committed Sep 4, 2015
1 parent be23ff5 commit 49ff02d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions telegram/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ def de_json(data):
if not data:
return None

data['thumb'] = PhotoSize.de_json(data.get('thumb'))

return Document(**data)
1 change: 0 additions & 1 deletion telegram/forcereply.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ def de_json(data):
return None

return ForceReply(**data)

2 changes: 2 additions & 0 deletions telegram/sticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@ def de_json(data):
if not data:
return None

data['thumb'] = PhotoSize.de_json(data.get('thumb'))

return Sticker(**data)
2 changes: 2 additions & 0 deletions telegram/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ def de_json(data):
if not data:
return None

data['thumb'] = PhotoSize.de_json(data.get('thumb'))

return Video(**data)

0 comments on commit 49ff02d

Please sign in to comment.