From 3ebc47de8b85e223f84225a887f73ef9ba4f444c Mon Sep 17 00:00:00 2001 From: eternnoir Date: Fri, 20 May 2016 14:39:34 +0800 Subject: [PATCH] Add missing title in InlineQueryResultVenue. #165 --- telebot/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index eb547f2..baa60ea 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -5,6 +5,7 @@ import six from telebot import util + class JsonSerializable: """ Subclasses of this class are guaranteed to be able to be converted to JSON format. @@ -1195,8 +1196,8 @@ class InlineQueryResultVenue(JsonSerializable): self.thumb_height = thumb_height def to_json(self): - json_dict = {'type': self.type, 'id': self.id, 'latitude': self.latitude, 'longitude': self.longitude, - 'address': self.address} + json_dict = {'type': self.type, 'title': self.title, 'id': self.id, 'latitude': self.latitude, + 'longitude': self.longitude, 'address': self.address} if self.foursquare_id: json_dict['foursquare_id'] = self.foursquare_id if self.thumb_url: