From 225cbf2c6172720a6bdfeff97bd7ac4d69936e89 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sun, 17 Apr 2016 23:21:11 +0800 Subject: [PATCH] Update switch_inline_query is empty not set bug. --- telebot/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 01bbd1b..38e526b 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -669,8 +669,8 @@ class InlineKeyboardButton(JsonSerializable): json_dic['url'] = self.url if self.callback_data: json_dic['callback_data'] = self.callback_data - if self.switch_inline_query: - json_dic['switch_inline_quer'] = self.switch_inline_query + if self.switch_inline_query is not None: + json_dic['switch_inline_query'] = self.switch_inline_query return json_dic