mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
fix callback query condition
This commit is contained in:
parent
31fba47829
commit
a114f70249
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue