mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Fix venue Loacation dejson.
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user