TDLib v0.0.2 TDLib.Method.AnswerInlineQuery View Source
Sets the result of an inline query; for bots only.
Returns object_ptr
Name | Type | Description |
---|---|---|
inline_query_id | string | Identifier of the inline query. |
is_personal | bool | True, if the result of the query can be cached for the specified user. |
results | InputInlineQueryResult[] | The results of the query. |
cache_time | number | Allowed time to cache the results of the query, in seconds. |
next_offset | string | Offset for the next inline query; pass an empty string if there are no more results. |
switch_pm_text | string | If non-empty, this text should 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. |
switch_pm_parameter | string | The parameter for the bot start message. |
More details on telegram’s documentation.