answerInlineQuery

Answer an inline query. Bot-only.

PARAMETERS
id: string

The ID of the inline query to answer.

The results to answer with.

cacheTime?: number

TTL of the caches of the results in seconds. Defaults to 300.

isPersonal?: boolean

Whether the result caches should only be for the user who made the inline query.

nextOffset?: string

A parameter to be passed to the same query next time when the user’s client asks for more results. Can’t be longer than 64 bytes.

isGallery?: boolean

A button to be shown along with the results.

RESULT
void
SYNTAX
// Required parameters only.
await client.answerInlineQuery(id, results);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.answerInlineQuery(id, results, {
    cacheTime,
    isPersonal,
    nextOffset,
    isGallery,
    button,
});