WallPaperSettings

class pyrogram.raw.types.WallPaperSettings

Wallpaper rendering information.

Constructor of WallPaperSettings.

Details:
  • Layer: 223

  • ID: 372EFCD0

Parameters:
  • 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 32-bit, optional) – Used for solid », gradient » and freeform gradient » fills.

  • second_background_color (int 32-bit, optional) – Used for gradient » and freeform gradient » fills.

  • third_background_color (int 32-bit, optional) – Used for freeform gradient » fills.

  • fourth_background_color (int 32-bit, optional) – Used for freeform gradient » fills.

  • intensity (int 32-bit, optional) – Used for pattern wallpapers ».

  • rotation (int 32-bit, optional) – Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.

  • emoticon (str, optional) – If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

TL Schema

wallPaperSettings#372efcd0
flags:#
blur:flags.1?true
motion:flags.2?true
background_color:flags.0?int
second_background_color:flags.4?int
third_background_color:flags.5?int
fourth_background_color:flags.6?int
intensity:flags.3?int
rotation:flags.4?int
emoticon:flags.7?string

= WallPaperSettings

Parameter Tree

WallPaperSettings
├── blurtrue (optional)
├── motiontrue (optional)
├── background_colorint (optional)
├── second_background_colorint (optional)
├── third_background_colorint (optional)
├── fourth_background_colorint (optional)
├── intensityint (optional)
├── rotationint (optional)
└── emoticonstring (optional)

Example

WallPaperSettings(
)