CRMchat APIBeta
Telegram APIMessages

messages.sendWebViewData

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/messages.sendWebViewData

Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.

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*

Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.sendWebViewData" \  -H "Content-Type: application/json" \  -d '{    "params": {      "bot": {        "_": "inputUserEmpty"      },      "randomId": "string",      "buttonText": "string",      "data": "string"    }  }'
{  "result": {    "_": "updatesTooLong"  }}