telegram api method · layer 229 · #413a3e73
messages.requestSimpleWebView
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
from_switch_webview | true | Whether 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_menu | true | Set this flag if opening the Mini App from the installed side menu entry ». |
compact | true | Deprecated. |
fullscreen | true | Requests to open the app in fullscreen mode. |
bot | InputUser | Bot that owns the mini app |
url | string | Web app URL, if opening from a keyboard button or inline result |
start_param | string | Deprecated. |
theme_params | DataJSON | Theme parameters » |
platform | string | Short name of the application; 0-64 English letters, digits, and underscores |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | URL_INVALID | Invalid URL provided. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #6abb2f73 | 140–144 |
| #299bec8e | 145–162 |
| #1a46500a | 163–182 |
| #413a3e73 | 183–229 |