messages.botResults

Result of a query to an inline bot

Constructor schema is available as of layer 51. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
gallery flags.0?true Whether the result is a picture gallery
query_id long Query ID
next_offset flags.1?string The next offset to use when navigating through results
switch_pm 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.
switch_webview 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
cache_time int Caching validity of the results
users Vector<User> Users mentioned in the results

Type

messages.BotResults

Related pages

Mini Apps on Telegram

Bots can offer users interactive HTML5 web apps to completely replace any website.