Skip to content

answerInlineQuery

Sahri Riza Umami edited this page Sep 10, 2017 · 3 revisions

Bots only.
Sets result of an inline query

answerInlineQuery(inline_query_id, is_personal, results, cache_time, next_offset, switch_pm_text, switch_pm_parameter)
Field Type Description
inline_query_id int64 Identifier of the inline query
is_personal Bool Does result of the query can be cached only for specified user
results vector Results of the query
cache_time int32 Allowed time to cache results of the query in seconds
next_offset string Offset for the next inline query, pass empty string if there is no more results
switch_pm_text string If non-empty, this text should be shown on the button, which opens private chat with the bot and sends bot start message with parameter switch_pm_parameter
switch_pm_parameter string Parameter for the bot start message

Frequently Asked Questions
The Functions

Clone this wiki locally