peyk.platforms.telegram.types.background_type_fill¶
Classes
|
The background is automatically filled based on the selected colors. |
- class peyk.platforms.telegram.types.background_type_fill.BackgroundTypeFill(type: str = 'fill', fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient | None = None, dark_theme_dimming: int = 0)[source]¶
Bases:
objectThe background is automatically filled based on the selected colors.
- Variables:
type (str) – Type of the background, always ‘fill’
fill (peyk.platforms.telegram.types.background_fill_solid.BackgroundFillSolid | peyk.platforms.telegram.types.background_fill_gradient.BackgroundFillGradient | peyk.platforms.telegram.types.background_fill_freeform_gradient.BackgroundFillFreeformGradient | None) – The background fill
dark_theme_dimming (int) – Dimming of the background in dark themes, as a percentage; 0-100
- type: str = 'fill'¶
- fill: BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient | None = None¶
- dark_theme_dimming: int = 0¶
- classmethod from_dict(data: dict | None) BackgroundTypeFill | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.