Skip to main content

wallPaperSettings

Wallpaper rendering information.

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

Fields

NameTypeRequiredDescription
BlurboolFor image wallpapers »: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.
MotionboolIf set, the background needs to be slightly moved when the device is rotated.
BackgroundColorintUsed for solid », gradient » and freeform gradient » fills.
SecondBackgroundColorintUsed for gradient » and freeform gradient » fills.
ThirdBackgroundColorintUsed for freeform gradient » fills.
FourthBackgroundColorintUsed for freeform gradient » fills.
IntensityintUsed for pattern wallpapers ».
RotationintClockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.
EmoticonstringIf set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

References