Skip to main content

messages.botResults

Result of a query to an inline bot

type tg.MessagesBotResults struct { /* ... */ }

Fields​

NameTypeRequiredDescription
Gallerybool—Whether the result is a picture gallery
QueryIDint64yesQuery ID
NextOffsetstring—The next offset to use when navigating through results
SwitchPmInlineBotSwitchPM—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.
SwitchWebviewInlineBotWebView—Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app.
Results[]BotInlineResultClassyesThe results
CacheTimeintyesCaching validity of the results
Users[]UserClassyesUsers mentioned in the results

Returned by​

References​