Type of the callback context.
Return value type.
Constructs a new InlineQueryHandler.
Type of the callback context.
Return value type.
Callback function or string/RegExp match pattern.
OptionalcallbackOrPattern2: string | RegExp | HandlerCallback<C, R> | ((query: 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 inline_query.query.
Checks whether the update contains a matching inline query.
The update to test.
true if inline query matches, false otherwise.
Handler for Telegram inline queries triggered when a user types
@bot queryin any chat.Example