setBusinessAccountUsername
Change a managed business account's username using its connection ID, with an option to clear it by passing an empty string. Requires the can_change_username bot permission.
Instructions
Changes the username of a managed business account. Requires the can_change_username business bot right. Returns True on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business_connection_id": "<business_connection_id>"
},
"name": "setBusinessAccountUsername"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | The new username for the business account; 0-32 characters. Pass an empty string to remove the username. | |
| business_connection_id | Yes | Unique identifier of the business connection |