peyk.platforms.telegram.methods.set_business_account_profile_photo

async peyk.platforms.telegram.methods.set_business_account_profile_photo(self, business_connection_id: str, photo: InputProfilePhotoStatic | InputProfilePhotoAnimated, *, is_public: bool | None = None) bool

Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business bot right. Returns True on success.

Parameters:
  • business_connection_id – Unique identifier of the business connection

  • photo – The new profile photo to set

  • is_public – Pass True to set the public photo, which will be visible even if the main photo is hidden by the business account’s privacy settings. An account can have only one public photo.

Returns:

Result returned by Telegram on successful execution.

Return type:

bool