CRMchat APIBeta
Telegram APIBots

bots.getRequestedWebViewButton

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/bots.getRequestedWebViewButton

Fetch the peer request button a bot prepared for a Mini App with bots.RawRequestWebViewButtonRequest, invoked when the Mini App emits a web_app_request_chat event, see here » for more info.

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*

Fetch the peer request button a bot prepared for a Mini App with bots.RawRequestWebViewButtonRequest, invoked when the Mini App emits a web_app_request_chat event, see here » for more info.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/bots.getRequestedWebViewButton" \  -H "Content-Type: application/json" \  -d '{    "params": {      "bot": {        "_": "inputUserEmpty"      },      "webappReqId": "string"    }  }'
{  "result": {    "_": "keyboardButton",    "style": {      "_": "keyboardButtonStyle",      "bgPrimary": true,      "bgDanger": true,      "bgSuccess": true,      "icon": "string"    },    "text": "string"  }}