1.3 KiB
1.3 KiB
title | description | image |
---|---|---|
answerInlineQuery | Bots only. Sets result of an inline query | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Method: answerInlineQuery
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Bots only. Sets result of an inline query
Parameters:
Name | Type | Description | Required |
---|---|---|---|
inline_query_id | int64 | Identifier of the inline query | Yes |
is_personal | Bool | Does result of the query can be cached only for specified user | Yes |
results | Array of InputInlineQueryResult | Results of the query | Yes |
cache_time | int | Allowed time to cache results of the query in seconds | Yes |
next_offset | string | Offset for the next inline query, pass empty string if there is no more results | Yes |
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 | Yes |
switch_pm_parameter | string | Parameter for the bot start message | Yes |