MadelineProtoDocs/docs/API_docs/constructors/messages.botResults.md

38 lines
1.9 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "messages.botResults"
description: "Result of a query to an inline bot"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_botResults.html
---
# Constructor: messages.botResults
[Back to constructors index](/API_docs/constructors/index.html)
Result of a query to an inline bot
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|gallery|[Bool](/API_docs/types/Bool.html) | Optional|Whether the result is a picture gallery|
|query\_id|[long](/API_docs/types/long.html) | Yes|Query ID|
|next\_offset|[string](/API_docs/types/string.html) | Optional|The next offset to use when navigating through results|
|switch\_pm|[InlineBotSwitchPM](/API_docs/types/InlineBotSwitchPM.html) | 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](/API_docs/types/InlineBotWebView.html) | Optional|Shown as a button on top of the remaining inline result list; if clicked, opens the specified [inline mode mini app](https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps).|
|results|Array of [BotInlineResult](/API_docs/types/BotInlineResult.html) | Yes|The results|
|cache\_time|[int](/API_docs/types/int.html) | Yes|Caching validity of the results|
|users|Array of [User](/API_docs/types/User.html) | Yes|Users mentioned in the results|
### Type: [messages.BotResults](/API_docs/types/messages.BotResults.html)
### 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]];
```