MessageActionSetChatWallPaper

class pyrogram.raw.types.MessageActionSetChatWallPaper

The wallpaper » of the current chat was changed.

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: 5060A3F4

Parameters:
  • wallpaper (WallPaper) – New wallpaper

  • same (bool, optional) – If set, indicates the user applied a wallpaper » previously sent by the other user in a messageActionSetChatWallPaper message.

  • for_both (bool, optional) – If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side. If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking messages.setChatWallPaper, providing only the revert flag (and obviously the peer parameter).

TL Schema

messageActionSetChatWallPaper#5060a3f4
flags:#
same:flags.0?true
for_both:flags.1?true
wallpaper:WallPaper

= MessageAction

Parameter Tree

MessageActionSetChatWallPaper
├── sametrue (optional)
├── for_bothtrue (optional)
└── wallpaperWallPaper
├── 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

MessageActionSetChatWallPaper(
    wallpaper=WallPaper(
        id=0,
        access_hash=0,
        slug="text",
        document=DocumentEmpty(id=0)
    ),
)