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 and dark_theme_dimming are equal.

Added in version 21.2.

Parameters:
type[source]

Type of the background. Always WALLPAPER.

Type:

str

document[source]

Document with the wallpaper

Type:

telegram.Document

dark_theme_dimming[source]

Dimming of the background in dark themes, as a percentage; 0-100.

Type:

int

is_blurred[source]

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12

Type:

bool

is_moving[source]

Optional. True, if the background moves slightly when the device is tilted

Type:

bool