setBusinessAccountProfilePhoto
Returns boolean ↗
Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business bot right.
Required: business_connection_id, photo · Optional: 1 parameters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("set_business_account_profile_photo", { business_connection_id: "...", photo: { /* InputProfilePhoto */ }})Parameters
business_connection_id string Required
Unique identifier of the business connection.
photo InputProfilePhoto Required
The new profile photo to set.
is_public boolean
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.
Related methods
setBusinessAccountBio · setBusinessAccountGiftSettings · setBusinessAccountName · setBusinessAccountUsername · setChatAdministratorCustomTitle · setChatDescription · setChatMemberTag · setChatMenuButton · setChatPermissions · setChatPhoto · setChatStickerSet · setChatTitle · setCustomEmojiStickerSetThumbnail · setGameScore · setMessageReaction · setMyCommands · setMyDefaultAdministratorRights · setMyDescription · setMyName · setMyProfilePhoto · setMyShortDescription · setPassportDataErrors · setStickerEmojiList · setStickerKeywords · setStickerMaskPosition · setStickerPositionInSet · setStickerSetThumbnail · setStickerSetTitle · setUserEmojiStatus · setWebhook