MadelineProtoDocs/docs/API_docs/constructors/wallPaperSettings.md
2024-05-01 14:53:46 +02:00

2.5 KiB

title description nav_exclude image
wallPaperSettings Wallpaper rendering information. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: wallPaperSettings

Back to constructors index

Wallpaper rendering information.

Attributes:

Name Type Required Description
blur Bool Optional For image wallpapers »: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.
motion Bool Optional If set, the background needs to be slightly moved when the device is rotated.
background_color int Optional Used for solid », gradient » and freeform gradient » fills.
second_background_color int Optional Used for gradient » and freeform gradient » fills.
third_background_color int Optional Used for freeform gradient » fills.
fourth_background_color int Optional Used for freeform gradient » fills.
intensity int Optional Used for pattern wallpapers ».
rotation int Optional Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.
emoticon string Optional If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

Type: WallPaperSettings

Example:

$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'second_background_color' => int, 'third_background_color' => int, 'fourth_background_color' => int, 'intensity' => int, 'rotation' => int, 'emoticon' => 'string'];