Method: account.saveWallPaper

Back to methods index

Save wallpaper


Name Type Description Required
wallpaper InputWallPaper The wallpaper to save Yes
unsave Bool Delete saved wallpaper Yes
settings WallPaperSettings The wallpaper to save Yes

Return type: Bool

Can bots use this method: YES

MadelineProto Example (now async!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
define('MADELINE_BRANCH', '');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Bool = $MadelineProto->account->saveWallPaper(['wallpaper' => InputWallPaper, 'unsave' => Bool, 'settings' => WallPaperSettings, ]);

Or, if you’re into Lua:

Bool = account.saveWallPaper({wallpaper=InputWallPaper, unsave=Bool, settings=WallPaperSettings, })
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.