switch_inline_query defaults to empty string #232

This commit is contained in:
Leandro Toledo 2016-04-21 11:02:34 -03:00
parent 720c4d22d8
commit 263310be36

View file

@ -52,7 +52,7 @@ class InlineKeyboardButton(TelegramObject):
# Optionals # Optionals
self.url = kwargs.get('url') self.url = kwargs.get('url')
self.callback_data = kwargs.get('callback_data') 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 @staticmethod
def de_json(data): def de_json(data):