Skip to main content

wallPaper

Represents a wallpaper based on an image.

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

Implements WallPaper.

Fields

NameTypeRequiredDescription
IDint64yesIdentifier
CreatorboolWhether we created this wallpaper
DefaultboolWhether this is the default wallpaper
PatternboolWhether this is a pattern wallpaper »
DarkboolWhether 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
SettingsWallPaperSettingsInfo on how to generate the wallpaper, according to these instructions ».

References