Skip to main content

wallPaperSettings

Wallpaper rendering information.

type tg.WallPaperSettings struct { /* ... */ }

Fields​

NameTypeRequiredDescription
Blurbool—For image wallpapers »: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.
Motionbool—If set, the background needs to be slightly moved when the device is rotated.
BackgroundColorint—Used for solid », gradient » and freeform gradient » fills.
SecondBackgroundColorint—Used for gradient » and freeform gradient » fills.
ThirdBackgroundColorint—Used for freeform gradient » fills.
FourthBackgroundColorint—Used for freeform gradient » fills.
Intensityint—Used for pattern wallpapers ».
Rotationint—Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.
Emoticonstring—If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

References​