peyk.platforms.telegram.methods.set_business_account_username¶
- async peyk.platforms.telegram.methods.set_business_account_username(self, business_connection_id: str, *, username: str | None = None) bool¶
Changes the username of a managed business account. Requires the can_change_username business bot right. Returns True on success.
- Parameters:
business_connection_id – Unique identifier of the business connection
username – The new value of the username for the business account; 0-32 characters
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool