setBusinessAccountName¶
Returns: bool
- class litegram.methods.set_business_account_name.SetBusinessAccountName(*, business_connection_id: str, first_name: str, last_name: str | None = None, **extra_data: Any)[source]¶
Changes the first and last name of a managed business account. Requires the can_change_name business bot right. Returns
Trueon success.Source: https://core.telegram.org/bots/api#setbusinessaccountname
Usage¶
As bot method¶
result: bool = await bot.set_business_account_name(...)
Method as object¶
Imports:
from litegram.methods.set_business_account_name import SetBusinessAccountNamealias:
from litegram.methods import SetBusinessAccountName
With specific bot¶
result: bool = await bot(SetBusinessAccountName(...))
As reply into Webhook in handler¶
return SetBusinessAccountName(...)