PUT /accounts/{id}/telegram-commands

Replace the bot commands shown in the account's group (channels have no command menu) and in the private chats bound to it (best effort: failures there are warnings). The shared bot scopes commands per chat

PUT
/accounts/{id}/telegram-commands

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Path Parameters

id*string

Account id

Request Body

application/json
  1. body
commands*array<>

At most 100

Response Body

{success, data, warnings?}

application/json
  1. response
success?boolean
data?array<>

At most 100

warnings?array<string>
Example Request
curl -X PUT 'https://example.com/api/v1/accounts/string/telegram-commands' \  -H 'Content-Type: application/json' \  -d '{  "commands": [    {      "command": "string",      "description": "string"    }  ]}'
Example Response
{  "success": true,  "data": [    {      "command": "string",      "description": "string"    }  ],  "warnings": [    "string"  ]}