UniqueGiftModel¶
- class telegram.UniqueGiftModel(name, sticker, rarity_per_mille, rarity=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object describes the model of a unique gift.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their
name,stickerandrarity_per_milleare equal.Available In
Added in version 22.1.
- Parameters:
sticker (
telegram.Sticker) – The sticker that represents the unique gift.rarity_per_mille (
int) – The number of unique gifts that receive this model for every1000gifts upgraded. Always0for crafted gifts.Rarity of the model if it is a crafted model. Currently, can be
'uncommon','rare','epic', or'legendary'.Added in version 22.7.
- rarity_per_mille[source]¶
The number of unique gifts that receive this model for every
1000gifts upgraded. Always0for crafted gifts.- Type:
- rarity[source]¶
Optional. Rarity of the model if it is a crafted model. Currently, can be
'uncommon','rare','epic', or'legendary'.Added in version 22.7.
- Type: