Type of the callback context.
Return value type.
Creates a new CallbackQueryHandler.
Type of the callback context.
Return value type.
The callback function, or (when callbackOrPattern2 is the
callback) a string/RegExp pattern matched against callback_data.
OptionalcallbackOrPattern2: string | RegExp | HandlerCallback<C, R> | ((data: string) => boolean) | null
The pattern (string, RegExp, or predicate function) matched
against callback_data, or (when callbackOrPattern is the pattern) the callback.
ProtectedcallbackThe underlying callback function to invoke on match.
Optional ReadonlypatternOptional pattern or predicate string/regex matching callback_data.
Checks whether the update contains a matching callback_query and evaluates its data against the pattern.
The update to test.
true if the callback query matches the configured pattern or predicate.
Handler for button clicks and callback queries from inline keyboards.
Example