messages.requestSimpleWebView
Open a bot mini app.
Open a [bot mini app](https://core.telegram.org/api/bots/webapps.md).
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
from_switch_webview | true | لأ | 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 | لأ | Set this flag if opening the Mini App from the installed [side menu entry »](https://core.telegram.org/api/bots/attach.md). |
compact | true | لأ | Deprecated. |
fullscreen | true | لأ | Requests to open the app in fullscreen mode. |
bot | InputUser | أيوه | Bot that owns the mini app |
url | string | لأ | Web app URL, if opening from a keyboard button or inline result |
start_param | string | لأ | Deprecated. |
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.
- 400 · URL_INVALID — Invalid URL provided.