api.answerInlineQuery()
Sets the result of an inline query; for bots only
Parameters
AnswerInlineQueryParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
inlineQueryId | string | Identifier of the inline query |
isPersonal | boolean | True, if the result of the query can be cached for the specified user |
results | The results of the query | |
cacheTime | number | Allowed time to cache the results of the query, in seconds |
nextOffset | string | Offset for the next inline query; pass an empty string if there are no more results |
switchPmText | string | If non-empty, this text must be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter |
switchPmParameter | string | The parameter for the bot start message |