AcceptedGiftTypes¶
- class telegram.AcceptedGiftTypes(unlimited_gifts, limited_gifts, unique_gifts, premium_subscription, gifts_from_channels, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis 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_subscriptionandgifts_from_channelsare equal.Available In
Added in version 22.1.
Changed in version 22.6:
gifts_from_channelsis 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 acceptedAdded in version 22.6.
- unique_gifts[source]¶
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.- Type:
bool
True, if a Telegram Premium subscription is accepted.- Type:
bool