messages.requestSimpleWebView
Open a bot mini app.
Open a [bot mini app](https://core.telegram.org/api/bots/webapps.md).
| Name | Type | Required | Description |
|---|---|---|---|
from_switch_webview | true | No | Whether the webapp was opened by clicking on the `switch_webview` button shown on top of the inline results list returned by [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md). |
from_side_menu | true | No | Set this flag if opening the Mini App from the installed [side menu entry »](https://core.telegram.org/api/bots/attach.md). |
compact | true | No | Deprecated. |
fullscreen | true | No | Requests to open the app in fullscreen mode. |
bot | InputUser | Yes | Bot that owns the mini app |
url | string | No | Web app URL, if opening from a keyboard button or inline result |
start_param | string | No | Deprecated. |
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.
- 400 · URL_INVALID — Invalid URL provided.