Skip to main content

wallPaper

Represents a wallpaper based on an image.

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

Implements WallPaper.

Fields​

NameTypeRequiredDescription
IDint64yesIdentifier
Creatorbool—Whether we created this wallpaper
Defaultbool—Whether this is the default wallpaper
Patternbool—Whether this is a pattern wallpaper »
Darkbool—Whether this wallpaper should be used in dark mode.
AccessHashint64yesAccess hash
SlugstringyesUnique wallpaper ID, used when generating wallpaper links or importing wallpaper links.
DocumentDocumentClassyesThe actual wallpaper
SettingsWallPaperSettings—Info on how to generate the wallpaper, according to these instructions ».

References​