Callback Query Handler

class bale.handlers.CallbackQueryHandler(check=None)

Bases: BaseHandler

This object shows a Callback Query Handler. It’s a handler class to handle Callback Queries.

check_new_update(update)

This function determines whether the “update” should be covered by the handler or not.

Parameters:

update (bale.Update) – The update to be tested.

Returns:

  • If False or None is returned, the update should not be wrapped by the handler,

  • otherwise the handler is required to wrapp that update.