peyk.platforms.telegram.types.unique_gift_backdrop¶
Classes
|
This object describes the backdrop of a unique gift. |
- class peyk.platforms.telegram.types.unique_gift_backdrop.UniqueGiftBackdrop(name: str = '', colors: UniqueGiftBackdropColors | None = None, rarity_per_milles: int = 0)[source]¶
Bases:
objectThis object describes the backdrop of a unique gift.
- Variables:
name (str) – Name of the backdrop
colors (peyk.platforms.telegram.types.unique_gift_backdrop_colors.UniqueGiftBackdropColors | None) – Colors of the backdrop
rarity_per_mille – The number of unique gifts that receive this backdrop for every 1000 gifts upgraded
- name: str = ''¶
- colors: UniqueGiftBackdropColors | None = None¶
- rarity_per_milles: int = 0¶
- classmethod from_dict(data: dict | None) UniqueGiftBackdrop | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.