CRMchat APIBeta
Telegram APIPhone

phone.receivedCall

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

Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended, 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*

Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended, 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.receivedCall" \  -H "Content-Type: application/json" \  -d '{    "params": {      "peer": {        "_": "inputPhoneCall",        "id": "string",        "accessHash": "string"      }    }  }'
{  "result": true}