UpdatePeerWallpaper
- class pyrogram.raw.types.UpdatePeerWallpaper
The wallpaper » of a given peer has changed.
Constructor of
Update.- Details:
Layer:
223ID:
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_overridden →
true (optional)├── peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long└── wallpaper →
WallPaper (optional)├──
WallPaper│ ├── id →
long│ ├── creator →
true (optional)│ ├── default →
true (optional)│ ├── pattern →
true (optional)│ ├── dark →
true (optional)│ ├── access_hash →
long│ ├── slug →
string│ ├── document →
Document│ │ ├──
DocumentEmpty│ │ │ └── id →
long│ │ └──
Document│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── file_reference →
bytes│ │ ├── date →
int│ │ ├── mime_type →
string│ │ ├── size →
long│ │ ├── thumbs →
Vector < PhotoSize > (optional)│ │ │ ├──
PhotoSizeEmpty│ │ │ ├──
PhotoSize│ │ │ ├──
PhotoCachedSize│ │ │ ├──
PhotoStrippedSize│ │ │ ├──
PhotoSizeProgressive│ │ │ └──
PhotoPathSize│ │ ├── video_thumbs →
Vector < VideoSize > (optional)│ │ │ ├──
VideoSize│ │ │ ├──
VideoSizeEmojiMarkup│ │ │ └──
VideoSizeStickerMarkup│ │ ├── dc_id →
int│ │ └── attributes →
Vector < DocumentAttribute >│ │ ├──
DocumentAttributeImageSize│ │ ├──
DocumentAttributeAnimated│ │ ├──
DocumentAttributeSticker│ │ ├──
DocumentAttributeVideo│ │ ├──
DocumentAttributeAudio│ │ ├──
DocumentAttributeFilename│ │ ├──
DocumentAttributeHasStickers│ │ └──
DocumentAttributeCustomEmoji│ └── settings →
WallPaperSettings (optional)│ └──
WallPaperSettings│ ├── blur →
true (optional)│ ├── motion →
true (optional)│ ├── background_color →
int (optional)│ ├── second_background_color →
int (optional)│ ├── third_background_color →
int (optional)│ ├── fourth_background_color →
int (optional)│ ├── intensity →
int (optional)│ ├── rotation →
int (optional)│ └── emoticon →
string (optional)└──
WallPaperNoFile├── id →
long├── default →
true (optional)├── dark →
true (optional)└── settings →
WallPaperSettings (optional)├── blur →
true (optional)├── motion →
true (optional)├── background_color →
int (optional)├── second_background_color →
int (optional)├── third_background_color →
int (optional)├── fourth_background_color →
int (optional)├── intensity →
int (optional)├── rotation →
int (optional)└── emoticon →
string (optional)Example
UpdatePeerWallpaper(
peer=PeerUser(user_id=0),
)