Skip to content

GramIO API Reference / @gramio/contexts/dist / BackgroundTypeWallpaper

Class: BackgroundTypeWallpaper ​

Defined in: contexts/index.d.ts:1326

The background is a wallpaper in the JPEG format.

Documentation

Constructors ​

Constructor ​

new BackgroundTypeWallpaper(payload): BackgroundTypeWallpaper

Defined in: contexts/index.d.ts:1328

Parameters ​

ParameterType
payloadTelegramBackgroundTypeWallpaper

Returns ​

BackgroundTypeWallpaper

Properties ​

PropertyTypeDefined in
payloadTelegramBackgroundTypeWallpapercontexts/index.d.ts:1327

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:1330

MDN

Returns ​

string


darkThemeDimming ​

Get Signature ​

get darkThemeDimming(): number

Defined in: contexts/index.d.ts:1342

Dimming of the background in dark themes, as a percentage; 0-100

Returns ​

number


document ​

Get Signature ​

get document(): DocumentAttachment

Defined in: contexts/index.d.ts:1338

Document with the wallpaper

Returns ​

DocumentAttachment


isBlurred ​

Get Signature ​

get isBlurred(): true

Defined in: contexts/index.d.ts:1346

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12

Returns ​

true


isMoving ​

Get Signature ​

get isMoving(): true

Defined in: contexts/index.d.ts:1350

Optional. True, if the background moves slightly when the device is tilted

Returns ​

true


type ​

Get Signature ​

get type(): "wallpaper"

Defined in: contexts/index.d.ts:1334

Type of the background, always “wallpaper”

Returns ​

"wallpaper"