set_business_account_gift_settings()¶
- async Client.set_business_account_gift_settings()¶
Change the privacy settings for incoming gifts of a managed business account.
Requires the
can_manage_giftsbusiness bot right.Usable by Users Bots- Parameters:
business_connection_id (
str) – Unique identifier of the business connection.show_gift_button (
bool) – Pass True to show the gift button in the business account’s profile; pass False to hide it.accepted_gift_types (
DisallowedGiftsSettings) – Types of gifts accepted by the business account. UseDisallowedGiftsSettingsto construct.
- Returns:
bool– True on success.
Example
from pyrogram.raw.types import DisallowedGiftsSettings await app.set_business_account_gift_settings( connection_id, show_gift_button=True, accepted_gift_types=DisallowedGiftsSettings( disallow_unlimited_stargifts=False, disallow_limited_stargifts=False, disallow_unique_stargifts=False, disallow_premium_gifts=False, ), )