AcceptedGiftTypes

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

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.

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[source]

True, if unlimited regular gifts are accepted.

Type:

bool

limited_gifts[source]

True, if limited regular gifts are accepted.

Type:

bool

unique_gifts[source]

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

Type:

bool

premium_subscription[source]

True, if a Telegram Premium subscription is accepted.

Type:

bool

gifts_from_channels[source]

True, if transfers of unique gifts from channels are accepted

Added in version 22.6.

Type:

bool