CRMchat APIBeta
Telegram APIPhone

phone.getGroupCallJoinAs

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

Get a list of peers that can be used to join a video chat or livestream », presenting yourself as a specific user/channel. This method cannot be used for live stories or conference calls. To comment or react in a live story as another peer, use channels.RawGetSendAsRequest with for_live_stories set and pass one of the returned peers to phone.RawSendGroupCallMessageRequest.send_as.

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*

Get a list of peers that can be used to join a video chat or livestream », presenting yourself as a specific user/channel. This method cannot be used for live stories or conference calls. To comment or react in a live story as another peer, use channels.RawGetSendAsRequest with for_live_stories set and pass one of the returned peers to phone.RawSendGroupCallMessageRequest.send_as.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/phone.getGroupCallJoinAs" \  -H "Content-Type: application/json" \  -d '{    "params": {      "peer": {        "_": "inputPeerEmpty"      }    }  }'
{  "result": {    "_": "phone.joinAsPeers",    "peers": [      {        "_": "peerUser",        "userId": 0      }    ],    "chats": [      {        "_": "chatEmpty",        "id": 0      }    ],    "users": [      {        "_": "userEmpty",        "id": 0      }    ]  }}