mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.9 KiB
1.9 KiB
title | description | nav_exclude | image | redirect_from |
---|---|---|---|---|
messages.botResults | Result of a query to an inline bot | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/constructors/messages_botResults.html |
Constructor: messages.botResults
Result of a query to an inline bot
Attributes:
Name | Type | Required | Description |
---|---|---|---|
gallery | Bool | Optional | Whether the result is a picture gallery |
query_id | long | Yes | Query ID |
next_offset | string | Optional | The next offset to use when navigating through results |
switch_pm | InlineBotSwitchPM | Optional | Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter. |
switch_webview | InlineBotWebView | Optional | Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app. |
results | Array of BotInlineResult | Yes | The results |
cache_time | int | Yes | Caching validity of the results |
users | Array of User | Yes | Users mentioned in the results |
Type: messages.BotResults
Example:
$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'switch_webview' => InlineBotWebView, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int, 'users' => [User, User]];