Layer 227
MessagesBotResultsObj
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 |
|---|---|---|
| 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 MessagesBotResultsObj constructor obj := &tg.MessagesBotResultsObj{ Gallery: nil, QueryId: int64(1234567890), NextOffset: "Hello, World!", SwitchPm: nil, SwitchWebview: nil, Results: &tg.VectorBotInlineResult{}, // ... more required fields }