Method: messages.setChatWallPaper
Set a custom wallpaper » in a specific private chat with another user.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
peer | Username, chat ID, Update, Message or InputPeer | The private chat where the wallpaper will be set | Optional |
wallpaper | InputWallPaper | The wallpaper », obtained as described in the wallpaper documentation »; must not be provided when installing a wallpaper obtained from a messageActionSetChatWallPaper service message (id must be provided, instead). | Optional |
settings | WallPaperSettings | Wallpaper settings, obtained as described in the wallpaper documentation » or from messageActionSetChatWallPaper.wallpaper .settings . | Optional |
id | int | If the wallpaper was obtained from a messageActionSetChatWallPaper service message, must contain the ID of that message. | Optional |
Return type: Updates
Can bots use this method: YES
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Updates = $MadelineProto->messages->setChatWallPaper(peer: $InputPeer, wallpaper: $InputWallPaper, settings: $WallPaperSettings, id: $int, );