peyk.platforms.telegram.types.unique_gift_model¶
Classes
|
This object describes the model of a unique gift. |
- class peyk.platforms.telegram.types.unique_gift_model.UniqueGiftModel(name: str = '', rarity_per_milles: int = 0, star_count: int = 0)[source]¶
Bases:
objectThis object describes the model of a unique gift.
- Variables:
name (str) – Name of the model
sticker – The sticker that represents the unique gift
rarity_per_mille – The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.
rarity – Rarity of the model if it is a crafted model. Currently, can be ‘uncommon’, ‘rare’, ‘epic’, or ‘legendary’.
- name: str = ''¶
- rarity_per_milles: int = 0¶
- star_count: int = 0¶
- classmethod from_dict(data: dict | None) UniqueGiftModel | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.