From 0c420ee5e481a813d23e0eb4f5f1eeb53afb4d16 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Thu, 12 May 2016 11:09:21 +0800 Subject: [PATCH] Add missing title to InlineQueryResultLocation to_json. Fix #160 --- telebot/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 2ef11b5..fc37605 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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: