peyk.platforms.telegram.types.gift_background¶
Classes
|
This object describes the background of a gift. |
- class peyk.platforms.telegram.types.gift_background.GiftBackground(name: str = '', center_color: int = 0, edge_color: int = 0, symbol_color: int = 0, text_color: int = 0)[source]¶
Bases:
objectThis object describes the background of a gift.
- Variables:
center_color (int) – Center color of the background in RGB format
edge_color (int) – Edge color of the background in RGB format
text_color (int) – Text color of the background in RGB format
- name: str = ''¶
- center_color: int = 0¶
- edge_color: int = 0¶
- symbol_color: int = 0¶
- text_color: int = 0¶
- classmethod from_dict(data: dict | None) GiftBackground | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.