setBusinessAccountProfilePhoto¶
Returns: bool
- class litegram.methods.set_business_account_profile_photo.SetBusinessAccountProfilePhoto(*, business_connection_id: str, photo: InputProfilePhotoUnion, is_public: bool | None = None, **extra_data: Any)[source]¶
Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business bot right. Returns
Trueon success.Source: https://core.telegram.org/bots/api#setbusinessaccountprofilephoto
- photo: InputProfilePhotoUnion¶
The new profile photo to set
Usage¶
As bot method¶
result: bool = await bot.set_business_account_profile_photo(...)
Method as object¶
Imports:
from litegram.methods.set_business_account_profile_photo import SetBusinessAccountProfilePhotoalias:
from litegram.methods import SetBusinessAccountProfilePhoto
With specific bot¶
result: bool = await bot(SetBusinessAccountProfilePhoto(...))
As reply into Webhook in handler¶
return SetBusinessAccountProfilePhoto(...)