Client.on_callback_query()

Client.on_callback_query()

Decorator for handling callback queries.

This does the same thing as add_handler() using the CallbackQueryHandler.

Parameters:
  • filters (filters, optional) – Pass one or more filters to allow only a subset of callback queries to be passed in your function.

  • group (int, optional) – The group identifier, defaults to 0.