messages.requestSimpleWebView #

Open a bot mini app.

Layer 223

webViewResultUrl#4d22ff98 flags:# fullsize:flags.1?true fullscreen:flags.2?true query_id:flags.0?long url:string = WebViewResult;
---functions---
messages.requestSimpleWebView#413a3e73 flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true compact:flags.7?true fullscreen:flags.8?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = WebViewResult;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
from_switch_webviewflags.1?trueWhether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by messages.getInlineBotResults.
from_side_menuflags.2?trueSet this flag if opening the Mini App from the installed side menu entry ».
compactflags.7?trueDeprecated.
fullscreenflags.8?trueRequests to open the app in fullscreen mode.
botInputUserBot that owns the mini app
urlflags.3?stringWeb app URL, if opening from a keyboard button or inline result
start_paramflags.4?stringDeprecated.
theme_paramsflags.0?DataJSONTheme parameters »
platformstringShort name of the application; 0-64 English letters, digits, and underscores

Result #

WebViewResult

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400URL_INVALIDInvalid URL provided.

messages.getInlineBotResults #

Query an inline bot

Bot attachment menu and side menu entries #

Bots can install attachment menu and side menu entries, offering conveniently accessible, versatile web apps.

Mini Apps on Telegram #

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