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

Add missing title to InlineQueryResultLocation to_json.

Fix #160
This commit is contained in:
eternnoir 2016-05-12 11:09:21 +08:00
parent 16838c30b6
commit 0c420ee5e4

View File

@ -1162,7 +1162,8 @@ class InlineQueryResultLocation(JsonSerializable):
self.thumb_height = thumb_height
def to_json(self):
json_dict = {'type': self.type, 'id': self.id, 'latitude': self.latitude, 'longitude': self.longitude}
json_dict = {'type': self.type, 'id': self.id, 'latitude': self.latitude, 'longitude': self.longitude,
'title': self.title}
if self.thumb_url:
json_dict['thumb_url'] = self.thumb_url
if self.thumb_width: