Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>WallPaperSettings_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class WallPaperSettings_
import { WallPaperSettings_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Wallpaper rendering information.

Constructors

new
WallPaperSettings_(params?: { blur?: true; motion?: true; background_color?: number; second_background_color?: number; third_background_color?: number; fourth_background_color?: number; intensity?: number; rotation?: number; emoticon?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
background_color: number
optional
blur: true

For image wallpapers »: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.

optional
emoticon: string

If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

optional
fourth_background_color: number

Used for freeform gradient » fills.

optional
intensity: number
optional
motion: true

If set, the background needs to be slightly moved when the device is rotated.

optional
rotation: number

Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.

optional
second_background_color: number

Used for gradient » and freeform gradient » fills.

optional
third_background_color: number

Used for freeform gradient » fills.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc