Skip to content
Back to top
View this page

# AcceptedGiftTypes

class telegram.AcceptedGiftTypes(unlimited_gifts, limited_gifts, unique_gifts, premium_subscription, gifts_from_channels, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object describes the types of gifts that can be gifted to a user or a chat.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their `unlimited_gifts`, `limited_gifts`, `unique_gifts`, `premium_subscription` and `gifts_from_channels` are equal.

  Use In

  `telegram.Bot.set_business_account_gift_settings()`

  Available In

  `telegram.ChatFullInfo.accepted_gift_types`

  Added in version 22.1.

  Changed in version 22.6: `gifts_from_channels` is now considered for equality checks.

  Parameters:

    - unlimited_gifts (`bool`) – `True`, if unlimited regular gifts are accepted.

    - limited_gifts (`bool`) – `True`, if limited regular gifts are accepted.

    - unique_gifts (`bool`) – `True`, if unique gifts or gifts that can be upgraded to unique for free are accepted.

    - premium_subscription (`bool`) – `True`, if a Telegram Premium subscription is accepted.

    - gifts_from_channels (`bool`) –

      `True`, if transfers of unique gifts from channels are accepted

      Added in version 22.6.

  unlimited_gifts

    `True`, if unlimited regular gifts are accepted.

    Type:

      `bool`

  limited_gifts

    `True`, if limited regular gifts are accepted.

    Type:

      `bool`

  unique_gifts

    `True`, if unique gifts or gifts that can be upgraded to unique for free are accepted.

    Type:

      `bool`

  premium_subscription

    `True`, if a Telegram Premium subscription is accepted.

    Type:

      `bool`

  gifts_from_channels

    `True`, if transfers of unique gifts from channels are accepted

    Added in version 22.6.

    Type:

      `bool`