MadelineProtoDocs/old_docs/API_docs_v68/constructors/messages_botResults.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.5 KiB

title description image
messages.botResults Bot results https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messages.botResults

Back to constructors index

Bot results

Attributes:

Name Type Required Description
gallery Bool Optional Gallery?
query_id long Yes Query ID
next_offset string Optional Next offset
switch_pm InlineBotSwitchPM Optional Switch pm
results Array of BotInlineResult Yes Results
cache_time int Yes Cache time

Type: messages_BotResults

Example:

$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int];

PWRTelegram json-encoded version:

{"_": "messages.botResults", "gallery": Bool, "query_id": long, "next_offset": "string", "switch_pm": InlineBotSwitchPM, "results": [BotInlineResult], "cache_time": int}

Or, if you're into Lua:

messages_botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', switch_pm=InlineBotSwitchPM, results={BotInlineResult}, cache_time=int}