MadelineProtoDocs/docs/API_docs/constructors/updatePeerWallpaper.md
2024-05-01 14:53:46 +02:00

1.3 KiB

title description nav_exclude image
updatePeerWallpaper The wallpaper » of a given peer has changed. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updatePeerWallpaper

Back to constructors index

The wallpaper » of a given peer has changed.

Attributes:

Name Type Required Description
wallpaper_overridden Bool Optional Whether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag, see here » for more info.
peer long Yes The peer where the wallpaper has changed.
wallpaper WallPaper Optional The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used.

Type: Update

Example:

$updatePeerWallpaper = ['_' => 'updatePeerWallpaper', 'wallpaper_overridden' => Bool, 'peer' => long, 'wallpaper' => WallPaper];