CRMchat APIBeta
Telegram APIPhone

phone.confirmCall

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/phone.confirmCall

Complete phone call E2E encryption key exchange », see here » for more info on the full flow.

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*

Complete phone call E2E encryption key exchange », see here » for more info on the full flow.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/phone.confirmCall" \  -H "Content-Type: application/json" \  -d '{    "params": {      "peer": {        "_": "inputPhoneCall",        "id": "string",        "accessHash": "string"      },      "gA": "string",      "keyFingerprint": "string",      "protocol": {        "_": "phoneCallProtocol",        "minLayer": 0,        "maxLayer": 0,        "libraryVersions": [          "string"        ]      }    }  }'
{  "result": {    "_": "phone.phoneCall",    "phoneCall": {      "_": "phoneCallEmpty",      "id": "string"    },    "users": [      {        "_": "userEmpty",        "id": 0      }    ]  }}