mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix venue Loacation dejson.
This commit is contained in:
parent
bac269d48a
commit
a5ed76018d
@ -492,7 +492,7 @@ class Venue(JsonDeserializable):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def de_json(cls, json_type):
|
def de_json(cls, json_type):
|
||||||
obj = cls.check_json(json_type)
|
obj = cls.check_json(json_type)
|
||||||
location = obj['location']
|
location = Location.de_json(obj['location'])
|
||||||
title = obj['title']
|
title = obj['title']
|
||||||
address = obj['address']
|
address = obj['address']
|
||||||
foursquare_id = obj.get('foursquare_id')
|
foursquare_id = obj.get('foursquare_id')
|
||||||
|
Loading…
Reference in New Issue
Block a user