Skip to content

setBusinessAccountGiftSettings

Returns boolean

Changes the privacy settings pertaining to incoming gifts in a managed business account. Requires the can_change_gift_settings business bot right.

Required: business_connection_id, show_gift_button, accepted_gift_types

Try it
Token saved
Response

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_gift_settings", {
business_connection_id: "...",
show_gift_button: true,
accepted_gift_types: { /* AcceptedGiftTypes */ }
})

Parameters

business_connection_id string Required
Unique identifier of the business connection.

show_gift_button boolean Required
Pass True, if a button for sending a gift to the user or by the business account must always be shown in the input field.

accepted_gift_types AcceptedGiftTypes Required
Types of gifts accepted by the business account.

setBusinessAccountBio · setBusinessAccountName · setBusinessAccountProfilePhoto · 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