From 263310be361f1a964e79bde7ee2cc51d17bd3af9 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Thu, 21 Apr 2016 11:02:34 -0300 Subject: [PATCH] switch_inline_query defaults to empty string #232 --- telegram/inlinekeyboardbutton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/inlinekeyboardbutton.py b/telegram/inlinekeyboardbutton.py index 455748dac..1439f0b91 100644 --- a/telegram/inlinekeyboardbutton.py +++ b/telegram/inlinekeyboardbutton.py @@ -52,7 +52,7 @@ class InlineKeyboardButton(TelegramObject): # Optionals self.url = kwargs.get('url') self.callback_data = kwargs.get('callback_data') - self.switch_inline_query = kwargs.get('switch_inline_query') + self.switch_inline_query = kwargs.get('switch_inline_query', '') @staticmethod def de_json(data):