MadelineProto/docs/TD_docs/constructors/inlineQueryResults.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.8 KiB

title description
inlineQueryResults Represents results of the inline query. Use sendInlineQueryResultMessage to send the result of the query

Constructor: inlineQueryResults

Back to constructors index

Represents results of the inline query. Use sendInlineQueryResultMessage to send the result of the query

Attributes:

Name Type Required Description
inline_query_id long Yes Unique identifier of the inline query
next_offset string Yes Offset for the next request. If it is empty, there is no more results
results Array of InlineQueryResult Yes Results of the query
switch_pm_text string Yes 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 Yes Parameter for the bot start message

Type: InlineQueryResults

Example:

$inlineQueryResults = ['_' => 'inlineQueryResults', 'inline_query_id' => long, 'next_offset' => 'string', 'results' => [InlineQueryResult], 'switch_pm_text' => 'string', 'switch_pm_parameter' => 'string'];

PWRTelegram json-encoded version:

{"_": "inlineQueryResults", "inline_query_id": long, "next_offset": "string", "results": [InlineQueryResult], "switch_pm_text": "string", "switch_pm_parameter": "string"}

Or, if you're into Lua:

inlineQueryResults={_='inlineQueryResults', inline_query_id=long, next_offset='string', results={InlineQueryResult}, switch_pm_text='string', switch_pm_parameter='string'}