messages.requestMainWebView
Open a Main Mini App.
Open a [Main Mini App](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).
| Name | Type | Required | Description |
|---|---|---|---|
compact | true | No | 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](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `compact`. |
fullscreen | true | No | 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](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `fullscreen`. |
peer | InputPeer | Yes | Currently open chat, may be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) if no chat is currently open. |
bot | InputUser | Yes | Bot that owns the main mini app. |
start_param | string | No | Start parameter, if opening from a [Main Mini App link »](https://core.telegram.org/api/links.md#main-mini-app-links). |
theme_params | DataJSON | No | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |
platform | string | Yes | Short name of the application; 0-64 English letters, digits, and underscores |
Replies
WebViewResult
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.