AcceptedGiftTypes

class telegram.AcceptedGiftTypes(unlimited_gifts, limited_gifts, unique_gifts, premium_subscription, *, 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 and premium_subscription are equal.

Added in version 22.1.

Parameters:
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