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
andpremium_subscription
are equal.Available In
Added in version 22.1.
- 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.