set_business_account_profile_photo()¶
- async Client.set_business_account_profile_photo()¶
Change the profile photo of a managed business account.
Requires the
can_edit_profile_photobusiness bot right.Usable by Users Bots- Parameters:
business_connection_id (
str) – Unique identifier of the business connection.photo (
str|BinaryIO) – New profile photo. Pass a file path as string to upload a local file, or pass a file-like object (BinaryIO).is_public (
bool, optional) – Pass True to set the public photo (visible to everyone even if the main photo is hidden by privacy settings).
- Returns:
bool– True on success.
Example
await app.set_business_account_profile_photo(connection_id, "photo.jpg")