set_business_account_gift_settings()

Client.set_business_account_gift_settings()

Changes the privacy settings pertaining to incoming gifts for a managed business account.

Usable by Users Bots

Parameters:
  • business_connection_id (str) – Unique identifier of the business connection.

  • show_gift_button (bool, optional) – Pass True to show the gift button in the profile.

  • allow_unlimited_gifts (bool, optional) – Allow unlimited star gifts. Default True.

  • allow_limited_gifts (bool, optional) – Allow limited star gifts. Default True.

  • allow_unique_gifts (bool, optional) – Allow unique star gifts. Default True.

  • allow_premium_gifts (bool, optional) – Allow premium gifts. Default True.

Returns:

bool – True on success.

Example

await app.set_business_account_gift_settings(
    connection_id,
    show_gift_button=True
)