set_business_account_username()¶
- async Client.set_business_account_username()¶
Change the username of a managed business account.
Requires the
can_change_usernamebusiness bot right.Usable by Users Bots- Parameters:
business_connection_id (
str) – Unique identifier of the business connection.username (
str, optional) – New username for the business account; 0-32 characters. Pass an empty string or omit to remove the username.
- Returns:
bool– True on success.
Example
await app.set_business_account_username(connection_id, "myshop")