--- title: messages.botResults description: Result of a query to an inline bot image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: messages.botResults [Back to constructors index](index.md) Result of a query to an inline bot ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |gallery|[Bool](../types/Bool.md) | Optional|Whether the result is a picture gallery| |query\_id|[long](../types/long.md) | Yes|Query ID| |next\_offset|[string](../types/string.md) | Optional|The next offset to use when navigating through results| |results|Array of [BotInlineResult](../types/BotInlineResult.md) | Yes|Results| ### Type: [messages\_BotResults](../types/messages_BotResults.md) ### Example: ```php $messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'results' => [BotInlineResult, BotInlineResult]]; ``` Or, if you're into Lua: ```lua messages_botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', results={BotInlineResult}} ```