50 lines
1.5 KiB
Markdown
50 lines
1.5 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|
|
|
|
|
|
|
|
|
### 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];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) 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:
|
|
|
|
```lua
|
|
messages_botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', switch_pm=InlineBotSwitchPM, results={BotInlineResult}, cache_time=int}
|
|
|
|
```
|
|
|
|
|