peyk.platforms.telegram.types.background_type_wallpaper¶
Classes
|
The background is a wallpaper in the JPEG format. |
- class peyk.platforms.telegram.types.background_type_wallpaper.BackgroundTypeWallpaper(type: str = 'wallpaper', document: Document | None = None, dark_theme_dimming: int = 0, is_blurred: bool | None = None, is_moving: bool | None = None)[source]¶
Bases:
objectThe background is a wallpaper in the JPEG format.
- Variables:
type (str) – Type of the background, always ‘wallpaper’
document (peyk.platforms.telegram.types.document.Document | None) – Document with the wallpaper
dark_theme_dimming (int) – Dimming of the background in dark themes, as a percentage; 0-100
is_blurred (bool | None) – True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12
is_moving (bool | None) – True, if the background moves slightly when the device is tilted
- type: str = 'wallpaper'¶
- dark_theme_dimming: int = 0¶
- is_blurred: bool | None = None¶
- is_moving: bool | None = None¶
- classmethod from_dict(data: dict | None) BackgroundTypeWallpaper | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.