Type of the callback context.
Return value type.
Constructs a new ChosenInlineResultHandler.
Type of the callback context.
Return value type.
Callback function or string/RegExp match pattern.
OptionalcallbackOrPattern2: string | RegExp | HandlerCallback<C, R> | ((resultId: string) => boolean) | null
Callback function or string/RegExp match pattern.
ProtectedcallbackThe underlying callback function to invoke on match.
Optional ReadonlypatternOptional pattern or predicate string/regex matching result_id or query.
Checks whether the chosen inline result matches the pattern.
The update to test.
true if chosen result matches, false otherwise.
Handler for tracking results chosen by users from inline queries.
Example