MadelineProtoDocs/docs/API_docs/constructors/messages_botResults.md

45 lines
1.3 KiB
Markdown

---
title: messages.botResults
description: Bot results
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messages.botResults
[Back to constructors index](index.md)
Bot results
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|gallery|[Bool](../types/Bool.md) | Optional|Gallery?|
|query\_id|[long](../types/long.md) | Yes|Query ID|
|next\_offset|[string](../types/string.md) | Optional|Next offset|
|switch\_pm|[InlineBotSwitchPM](../types/InlineBotSwitchPM.md) | Optional|Switch pm|
|results|Array of [BotInlineResult](../types/BotInlineResult.md) | Yes|Results|
|cache\_time|[int](../types/int.md) | Yes|Cache time|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [messages\_BotResults](../types/messages_BotResults.md)
### Example:
```php
$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int, 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
messages_botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', switch_pm=InlineBotSwitchPM, results={BotInlineResult}, cache_time=int, users={User}}
```