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 | Type | Required | Description |
|---|---|---|---|
write_allowed | true | No | 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 | No | 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 | No | 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 | Yes | 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 | Yes | 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 | No | 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 | 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_APP_BOT_INVALID — The bot_id passed in the inputBotAppShortName constructor is invalid.
- 400 · BOT_APP_INVALID — The specified bot app is invalid.
- 400 · BOT_APP_SHORTNAME_INVALID — The specified bot app short name is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · THEME_PARAMS_INVALID — The specified theme_params field is invalid.