telegram api method · layer 229 · #413a3e73

messages.requestSimpleWebView

usable by users

Open a bot mini app.

definition

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

returns

WebViewResult

errors (4)

codeerrordescription
400BOT_INVALIDThis is not a valid bot.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400URL_INVALIDInvalid URL provided.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 140–229 · constructor id changed 3×

idlayers
#6abb2f73140–144
#299bec8e145–162
#1a46500a163–182
#413a3e73183–229