CRMchat APIBeta
Telegram APIBots

bots.exportBotToken

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

Export the bot token of a managed bot »; can only be called by the manager bot.

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*

Export the bot token of a managed bot »; can only be called by the manager bot.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/bots.exportBotToken" \  -H "Content-Type: application/json" \  -d '{    "params": {      "bot": {        "_": "inputUserEmpty"      },      "revoke": true    }  }'
{  "result": {    "_": "bots.exportedBotToken",    "token": "string"  }}