setBusinessAccountUsername
Changes the username of a managed business account when the bot has the can_change_username right, returning true on success.
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>",
"username": "<username>"
},
"name": "setBusinessAccountUsername"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | The new value of the username for the business account; 0-32 characters | |
| business_connection_id | Yes | Unique identifier of the business connection * |