telegram api method · layer 229 · #c9e01e7b
messages.requestMainWebView
Open a Main Mini App.
definition
messages.requestMainWebView#c9e01e7b flags:# compact:flags.7?true fullscreen:flags.8?true peer:InputPeer bot:InputUser start_param:flags.1?string theme_params:flags.0?DataJSON platform:string = WebViewResult;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
compact | true | If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the mode parameter of the Main Mini App link is equal to compact. |
fullscreen | true | If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the mode parameter of the Main Mini App link is equal to fullscreen. |
peer | InputPeer | Currently open chat, may be inputPeerEmpty if no chat is currently open. |
bot | InputUser | Bot that owns the main mini app. |
start_param | string | Start parameter, if opening from a Main Mini App link ». |
theme_params | DataJSON | Theme parameters » |
platform | string | Short name of the application; 0-64 English letters, digits, and underscores |
returns
errors (3)
| 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. |
| 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 185–229
| id | layers |
|---|---|
| #c9e01e7b | 185–229 |