peyk.platforms.telegram.methods.set_business_account_name

async peyk.platforms.telegram.methods.set_business_account_name(self, business_connection_id: str, first_name: str, *, last_name: str | None = None) bool

Changes the first and last name of a managed business account. Requires the can_change_name business bot right. Returns True on success.

Parameters:
  • business_connection_id – Unique identifier of the business connection

  • first_name – The new value of the first name for the business account; 1-64 characters

  • last_name – The new value of the last name for the business account; 0-64 characters

Returns:

Result returned by Telegram on successful execution.

Return type:

bool