sendInlineQuery

Send an inline query. User-only.

Parameters

userId: ID

The ID of the bot to send the inline query to.

chatId: ID

The ID of the chat from which the inline query is sent.

query?: string

The inline query’s text. Defaults to empty string.

offset?: string

Bot-provided pagination offset.

Result

Syntax

// Required parameters only.
await client.sendInlineQuery(userId, chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendInlineQuery(userId, chatId, { query, offset });