CRMchat APIBeta
Telegram APIBots

bots.setBotCommands

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/bots.setBotCommands

Set bot command list

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*

Set bot command list

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/bots.setBotCommands" \  -H "Content-Type: application/json" \  -d '{    "params": {      "scope": {        "_": "botCommandScopeDefault"      },      "langCode": "string",      "commands": [        {          "_": "botCommand",          "command": "string",          "description": "string"        }      ]    }  }'
{  "result": true}