fix callback query condition

This commit is contained in:
Jannes Höke 2016-04-16 20:29:08 +02:00
parent 31fba47829
commit a114f70249

View file

@ -40,7 +40,7 @@ class CallbackQueryHandler(Handler):
super(CallbackQueryHandler, self).__init__(callback, pass_update_queue)
def checkUpdate(self, update):
return isinstance(update, Update) and update.inline_query
return isinstance(update, Update) and update.callback_query
def handleUpdate(self, update, dispatcher):
optional_args = self.collectOptionalArgs(dispatcher)