messages.requestMainWebView
Open a Main Mini App.
Open a [Main Mini App](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
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](https://core.telegram.org/api/links.md#main-mini-app-links) 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](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `fullscreen`. |
peer | InputPeer | أيوه | Currently open chat, may be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) 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 »](https://core.telegram.org/api/links.md#main-mini-app-links). |
theme_params | DataJSON | لأ | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |
platform | string | أيوه | Short name of the application; 0-64 English letters, digits, and underscores |
الردود
WebViewResult
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.