Skip to content

answerInlineQuery

Sahri Riza Umami edited this page Dec 8, 2016 · 2 revisions

Bots only.
Sets result of the inline query.

answerInlineQuery(inline_query_id, is_personal, cache_time, next_offset, switch_pm_text, switch_pm_parameter)
Option Description
inline_query_id Identifier of the inline query.
is_personal Does result of the query can be cached only for specified user.
results Results of the query.
cache_time Allowed time to cache results of the query in seconds.
next_offset Offset for the next inline query, pass empty string if there is no more results.
switch_pm_text 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 Parameter for the bot start message.

Example

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally