telegramx.js

InlineQuery

class

extends Base<T.InlineQuery>

An incoming inline query (when the user types @yourbot ...).

Declaration

declare class InlineQuery extends Base<T.InlineQuery> 

Properties

authorproperty#
get author(): User;

The user that issued the query.

idproperty#
get id(): string;
offsetproperty#
get offset(): string;

The offset of the results to return (for pagination).

queryproperty#
get query(): string;

The text of the query (without the bot's username).

Methods

answermethod#
answer(results: T.InlineQueryResult[], options?: AnswerOptions): Promise<boolean>;
ParameterType
resultsT.InlineQueryResult[]
options?AnswerOptions
Returns Promise<boolean>

Send results for this inline query.