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.