UpdatePeerWallpaper

class pyrogram.raw.types.UpdatePeerWallpaper

The wallpaper » of a given peer has changed.

Constructor of Update.

Details:
  • Layer: 223

  • ID: AE3F101D

Parameters:
  • peer (Peer) – The peer where the wallpaper has changed.

  • 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.

  • wallpaper (WallPaper, optional) – The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used.

TL Schema

updatePeerWallpaper#ae3f101d
flags:#
wallpaper_overridden:flags.1?true
peer:Peer
wallpaper:flags.0?WallPaper

= Update

Parameter Tree

UpdatePeerWallpaper
├── wallpaper_overriddentrue (optional)
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
└── wallpaperWallPaper (optional)
├── WallPaper
│ ├── idlong
│ ├── creatortrue (optional)
│ ├── defaulttrue (optional)
│ ├── patterntrue (optional)
│ ├── darktrue (optional)
│ ├── access_hashlong
│ ├── slugstring
│ ├── documentDocument
│ │ ├── DocumentEmpty
│ │ │ └── idlong
│ │ └── Document
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ ├── dateint
│ │ ├── mime_typestring
│ │ ├── sizelong
│ │ ├── thumbsVector < PhotoSize > (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ ├── video_thumbsVector < VideoSize > (optional)
│ │ │ ├── VideoSize
│ │ │ ├── VideoSizeEmojiMarkup
│ │ │ └── VideoSizeStickerMarkup
│ │ ├── dc_idint
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ └── settingsWallPaperSettings (optional)
│ └── WallPaperSettings
│ ├── blurtrue (optional)
│ ├── motiontrue (optional)
│ ├── background_colorint (optional)
│ ├── second_background_colorint (optional)
│ ├── third_background_colorint (optional)
│ ├── fourth_background_colorint (optional)
│ ├── intensityint (optional)
│ ├── rotationint (optional)
│ └── emoticonstring (optional)
└── WallPaperNoFile
├── idlong
├── defaulttrue (optional)
├── darktrue (optional)
└── settingsWallPaperSettings (optional)
├── blurtrue (optional)
├── motiontrue (optional)
├── background_colorint (optional)
├── second_background_colorint (optional)
├── third_background_colorint (optional)
├── fourth_background_colorint (optional)
├── intensityint (optional)
├── rotationint (optional)
└── emoticonstring (optional)

Example

UpdatePeerWallpaper(
    peer=PeerUser(user_id=0),
)