From 29ef0e74aff981629f27a336bb294773588ea6a3 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Fri, 17 Jun 2016 17:50:06 +0800 Subject: [PATCH] Fix typo. --- telebot/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 222e2c0..abc5cfa 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -1132,7 +1132,7 @@ class InlineQueryResultVoice(JsonSerializable): self.input_message_content = input_message_content def to_json(self): - json_dict = {'type': self.type, 'id': self.id, 'voice_url': self.voice_url, 'title': self.titlee} + json_dict = {'type': self.type, 'id': self.id, 'voice_url': self.voice_url, 'title': self.title} if self.performer: json_dict['performer'] = self.performer if self.voice_duration: @@ -1161,7 +1161,8 @@ class InlineQueryResultDocument(JsonSerializable): self.thumb_height = thumb_height def to_json(self): - json_dict = {'type': self.type, 'id': self.id, 'document_url': self.document_url, 'mime_type': self.titlee} + json_dict = {'type': self.type, 'id': self.id, 'title': self.title, 'document_url': self.document_url, + 'mime_type': self.mime_type} if self.caption: json_dict['caption'] = self.caption if self.description: