CRMchat APIBeta
Telegram APIAicompose

aicompose.updateTone

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/aicompose.updateTone

Edit a custom AI composer tone » previously created by the current user. Only the fields whose flag is set will be modified.

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*

Edit a custom AI composer tone » previously created by the current user. Only the fields whose flag is set will be modified.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/aicompose.updateTone" \  -H "Content-Type: application/json" \  -d '{    "params": {      "tone": {        "_": "inputAiComposeToneDefault",        "tone": "string"      }    }  }'
{  "result": {    "_": "aiComposeTone",    "creator": true,    "id": "string",    "accessHash": "string",    "slug": "string",    "title": "string",    "emojiId": "string",    "prompt": "string",    "installsCount": 0,    "authorId": 0,    "exampleEnglish": {      "_": "aiComposeToneExample",      "from": {        "_": "textWithEntities",        "text": "string",        "entities": [          {            "_": "messageEntityUnknown",            "offset": 0,            "length": 0          }        ]      },      "to": {        "_": "textWithEntities",        "text": "string",        "entities": [          {            "_": "messageEntityUnknown",            "offset": 0,            "length": 0          }        ]      }    }  }}