MadelineProtoDocs/old_docs/API_docs_v75/constructors/messages.botResults.md

46 lines
1.6 KiB
Markdown
Raw Normal View History

2019-06-24 15:45:02 +02:00
---
title: messages.botResults
2019-12-27 17:48:04 +01:00
description: Result of a query to an inline bot
2019-06-24 15:45:02 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2019-12-27 18:46:25 +01:00
redirect_from: /API_docs/constructors/messages_botResults.html
2019-06-24 15:45:02 +02:00
---
# Constructor: messages.botResults
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Result of a query to an inline bot
2019-06-24 15:45:02 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|gallery|[Bool](../types/Bool.md) | Optional|Whether the result is a picture gallery|
2019-06-24 15:45:02 +02:00
|query\_id|[long](../types/long.md) | Yes|Query ID|
2019-12-27 17:48:04 +01:00
|next\_offset|[string](../types/string.md) | Optional|The next offset to use when navigating through results|
|switch\_pm|[InlineBotSwitchPM](../types/InlineBotSwitchPM.md) | Optional|Whether the bot requested the user to message him in private|
2019-06-24 15:45:02 +02:00
|results|Array of [BotInlineResult](../types/BotInlineResult.md) | Yes|Results|
2019-12-27 17:48:04 +01:00
|cache\_time|[int](../types/int.md) | Yes|Caching validity of the results|
2019-06-24 15:45:02 +02:00
|users|Array of [User](../types/User.md) | Yes|Users|
2019-12-27 18:25:37 +01:00
### Type: [messages.BotResults](../types/messages.BotResults.md)
2019-06-24 15:45:02 +02:00
### Example:
```php
2019-12-27 18:25:37 +01:00
$messages.botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int, 'users' => [User, User]];
2019-06-24 15:45:02 +02:00
```
Or, if you're into Lua:
```lua
2019-12-27 18:25:37 +01:00
messages.botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', switch_pm=InlineBotSwitchPM, results={BotInlineResult}, cache_time=int, users={User}}
2019-06-24 15:45:02 +02:00
```