Telegram APIAccount
account.toggleUsername
Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.
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 the currently logged-in user.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/account.toggleUsername" \ -H "Content-Type: application/json" \ -d '{ "params": { "username": "string", "active": true } }'{ "result": true}toggleSponsoredMessages
Disable or re-enable Telegram ads for the current [Premium](https://core.telegram.org/api/premium) account. Useful for business owners that may want to launch and view their own Telegram ads via the [Telegram ad platform »](https://ads.telegram.org/).
toggleWebBrowserSettingsException
Next Page