messages.requestAppWebView
Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.
Open a [bot mini app](https://core.telegram.org/bots/webapps.md) from a [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), sending over user information after user confirmation.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
write_allowed | true | Nein | Set this flag if the bot is asking permission to send messages to the user as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs, and the user agreed. |
compact | true | Nein | 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 [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `compact`. |
fullscreen | true | Nein | 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 [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `fullscreen`. |
peer | InputPeer | Ja | If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead. |
app | InputBotApp | Ja | The app obtained by invoking [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md) as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs. |
start_param | string | Nein | If the `startapp` query string parameter is present in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), pass it to `start_param`. |
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_APP_BOT_INVALID – Die im inputBotAppShortName-Konstruktor übergebene bot_id ist ungültig.
- 400 · BOT_APP_INVALID – Die angegebene Bot-App ist ungültig.
- 400 · BOT_APP_SHORTNAME_INVALID – Der angegebene Kurzname der Bot-App ist ungültig.
- 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
- 400 · THEME_PARAMS_INVALID – Das angegebene theme_params-Feld ist ungültig.