removeBusinessAccountProfilePhoto()
Removes the current profile photo of a managed business account. Requires the can_edit_profile_photo business bot right. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
business_connection_id | string | required | Unique identifier of the business connection |
is_public | boolean | optional | Pass True to remove the public photo, which is visible even if the main photo is hidden by the business account's privacy settings. After the main photo is removed, the previous profile photo (if present) becomes the main photo. |
returns
boolean
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { RemoveBusinessAccountProfilePhotoParams } from "@yaebal/types";
await bot.api.call<boolean>("removeBusinessAccountProfilePhoto", {
business_connection_id: "...",
} satisfies RemoveBusinessAccountProfilePhotoParams);official Bot API docs: https://core.telegram.org/bots/api/#removebusinessaccountprofilephoto