peyk.platforms.telegram.methods.set_business_account_gift_settings

async peyk.platforms.telegram.methods.set_business_account_gift_settings(self, business_connection_id: str, show_gift_button: bool, accepted_gift_types: AcceptedGiftTypes) bool

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

Parameters:
  • business_connection_id – Unique identifier of the business connection

  • show_gift_button – 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 – Types of gifts accepted by the business account

Returns:

Result returned by Telegram on successful execution.

Return type:

bool