messages.requestSimpleWebView
Open a bot mini app.
Open a [bot mini app](https://core.telegram.org/api/bots/webapps.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
from_switch_webview | true | Nein | 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 | Nein | Set this flag if opening the Mini App from the installed [side menu entry »](https://core.telegram.org/api/bots/attach.md). |
compact | true | Nein | Deprecated. |
fullscreen | true | Nein | Requests to open the app in fullscreen mode. |
bot | InputUser | Ja | Bot that owns the mini app |
url | string | Nein | Web app URL, if opening from a keyboard button or inline result |
start_param | string | Nein | Deprecated. |
theme_params | DataJSON | Nein | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |
platform | string | Ja | Short name of the application; 0-64 English letters, digits, and underscores |
Antworten
WebViewResult
MTProto RPC
- 400 · BOT_INVALID – Dies ist kein gültiger Bot.
- 400 · URL_INVALID — Invalid URL provided.