Telegram APIBots
bots.toggleUsername
Activate or deactivate a purchased fragment.com username associated to a bot we own.
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*
Activate or deactivate a purchased fragment.com username associated to a bot we own.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/bots.toggleUsername" \ -H "Content-Type: application/json" \ -d '{ "params": { "bot": { "_": "inputUserEmpty" }, "username": "string", "active": true } }'{ "result": true}