TDLib v0.0.2 TDLib.Method.AnswerInlineQuery View Source

Sets the result of an inline query; for bots only. Returns object_ptr.

NameTypeDescription
inline_query_idstringIdentifier of the inline query.
is_personalboolTrue, if the result of the query can be cached for the specified user.
resultsInputInlineQueryResult[]The results of the query.
cache_timenumberAllowed time to cache the results of the query, in seconds.
next_offsetstringOffset for the next inline query; pass an empty string if there are no more results.
switch_pm_textstringIf 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_parameterstringThe parameter for the bot start message.

More details on telegram’s documentation.