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,
});