CRMchat APIBeta
Telegram APIAccount

account.saveRingtone

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/account.saveRingtone

Save or remove saved notification sound. If the notification sound is already in MP3 format, account.RawSavedRingtone will be returned. Otherwise, it will be automatically converted and a account.RawSavedRingtoneConverted will be returned, containing a new RawDocument object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading 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*

Save or remove saved notification sound. If the notification sound is already in MP3 format, account.RawSavedRingtone will be returned. Otherwise, it will be automatically converted and a account.RawSavedRingtoneConverted will be returned, containing a new RawDocument object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it).

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/account.saveRingtone" \  -H "Content-Type: application/json" \  -d '{    "params": {      "id": {        "_": "inputDocumentEmpty"      },      "unsave": true    }  }'
{  "result": {    "_": "account.savedRingtone"  }}