mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +01:00
fix de_json
This commit is contained in:
parent
0e5129e59f
commit
185b080daa
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ class Venue(TelegramObject):
|
|||
|
||||
@staticmethod
|
||||
def de_json(data):
|
||||
if not data:
|
||||
return None
|
||||
|
||||
data = super(Venue, Venue).de_json(data)
|
||||
|
||||
data['location'] = Location.de_json(data.get('location'))
|
||||
|
|
Loading…
Add table
Reference in a new issue