account.UploadWallPaper

class pyrogram.raw.functions.account.UploadWallPaper

Create and upload a new wallpaper

Details:
  • Layer: 223

  • ID: E39A8F03

Parameters:
  • file (InputFile) – The JPG/PNG wallpaper

  • mime_type (str) – MIME type of uploaded wallpaper

  • settings (WallPaperSettings) – Wallpaper settings

  • for_chat (bool, optional) – Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper.

Returns:

WallPaper

TL Schema

account.uploadWallPaper#e39a8f03
flags:#
for_chat:flags.0?true
file:InputFile
mime_type:string
settings:WallPaperSettings

= WallPaper

Parameter Tree

UploadWallPaper
├── for_chattrue (optional)
├── fileInputFile
│ ├── InputFile
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── namestring
│ │ └── md5_checksumstring
│ ├── InputFileBig
│ │ ├── idlong
│ │ ├── partsint
│ │ └── namestring
│ └── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── mime_typestring
└── settingsWallPaperSettings
├── 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

await app.invoke(
    UploadWallPaper(
        for_chat=None,
        file=InputFile(
            id=0,
            parts=0,
            name="text",
            md5_checksum="text"
        ),
        mime_type="text",
        settings=WallPaperSettings(
            blur=None,
            motion=None,
            background_color=None,
            second_background_color=None,
            third_background_color=None,
            fourth_background_color=None,
            intensity=None,
            rotation=None,
            emoticon=None
        ),
    )
)