account.SaveWallPaper

class pyrogram.raw.functions.account.SaveWallPaper

Install/uninstall wallpaper

Details:
  • Layer: 227

  • ID: 6C5A5B37

Parameters:
  • wallpaper (InputWallPaper) – Wallpaper to install or uninstall

  • unsave (bool) – Uninstall wallpaper?

  • settings (WallPaperSettings) – Wallpaper settings

Returns:

bool

TL Schema

account.saveWallPaper#6c5a5b37
wallpaper:InputWallPaper
unsave:Bool
settings:WallPaperSettings

= Bool

Parameter Tree

SaveWallPaper
├── wallpaper → InputWallPaper
│ ├── InputWallPaper
│ │ ├── id → long
│ │ └── access_hash → long
│ ├── InputWallPaperSlug
│ │ └── slug → string
│ └── InputWallPaperNoFile
│ └── id → long
├── unsave → Bool
└── settings → 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)

Example

await app.invoke(
    SaveWallPaper(
        wallpaper=InputWallPaper(
            id=0,
            access_hash=0
        ),
        unsave=True,
        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
        ),
    )
)