Layer 220
MessagesBotResults
Result of a query to an inline bot
constructor
messages.botResults#e021f2f6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM switch_webview:flags.3?InlineBotWebView results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Gallery | flags.0?true | Whether the result is a picture gallery |
| QueryId | long | Query ID |
| NextOffset | flags.1?string | The next offset to use when navigating through results |
| SwitchPm | flags.2?InlineBotSwitchPM | 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. |
| SwitchWebview | flags.3?InlineBotWebView | Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app. |
| Results | Vector<BotInlineResult> | The results |
| CacheTime | int | Caching validity of the results |
| Users | Vector<User> | Users mentioned in the results |
Returns
messages.BotResultsGogram Example
// Creating MessagesBotResults constructor obj := &tg.MessagesBotResults{ QueryId: int64(0), Results: []tg.BotInlineResult{&tg.BotInlineResult{}}, CacheTime: 0, Users: []tg.User{&tg.User{}}, // Optional fields: // Gallery: true, // NextOffset: "...", // SwitchPm: &tg.InlineBotSwitchPm{}, // SwitchWebview: &tg.InlineBotWebView{}, }