Telegram APIMessages
messages.requestAppWebView
Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation. After calling this method, until the user closes the webview, messages.RawProlongWebViewRequest must be called every 60 seconds.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workspaceId*string
Workspace ID
accountId*string
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
params*
Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation. After calling this method, until the user closes the webview, messages.RawProlongWebViewRequest must be called every 60 seconds.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.requestAppWebView" \ -H "Content-Type: application/json" \ -d '{ "params": { "peer": { "_": "inputPeerEmpty" }, "app": { "_": "inputBotAppID", "id": "string", "accessHash": "string" }, "platform": "string" } }'{ "result": { "_": "webViewResultUrl", "fullsize": true, "fullscreen": true, "sameOrigin": true, "queryId": "string", "url": "string" }}