BackgroundTypeWallpaper¶
Added in version 21.2.
- class telegram.BackgroundTypeWallpaper(document, dark_theme_dimming, is_blurred=None, is_moving=None, *, api_kwargs=None)[source]¶
Bases:
telegram.BackgroundType
The background is a wallpaper in the JPEG format.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
document
anddark_theme_dimming
are equal.Available In
Added in version 21.2.
- Parameters:
document (
telegram.Document
) – Document with the wallpaperdark_theme_dimming (
int
) – Dimming of the background in dark themes, as a percentage; 0-100
.is_blurred (
bool
, optional) –True
, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12is_moving (
bool
, optional) –True
, if the background moves slightly when the device is tilted