MadelineProtoDocs/old_docs/API_docs_v41/constructors/wallPaper.md
2020-06-16 17:50:25 +02:00

1.4 KiB

title description image
wallPaper Wallpaper settings. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: wallPaper

Back to constructors index

Wallpaper settings.

Attributes:

Name Type Required Description
id long Yes Identifier
creator Bool Optional Creator of the wallpaper
default Bool Optional Whether this is the default wallpaper
pattern Bool Optional Pattern
dark Bool Optional Dark mode
access_hash long Yes Access hash
slug string Yes Unique wallpaper ID
document Document Optional The actual wallpaper
settings WallPaperSettings Optional Wallpaper settings

Type: WallPaper

Example:

$wallPaper = ['_' => 'wallPaper', 'id' => long, 'creator' => Bool, 'default' => Bool, 'pattern' => Bool, 'dark' => Bool, 'access_hash' => long, 'slug' => 'string', 'document' => Document, 'settings' => WallPaperSettings];

Or, if you're into Lua:

wallPaper={_='wallPaper', id=long, creator=Bool, default=Bool, pattern=Bool, dark=Bool, access_hash=long, slug='string', document=Document, settings=WallPaperSettings}