account.InstallWallPaper

class pyrogram.raw.functions.account.InstallWallPaper

Install wallpaper

Details:
  • Layer: 227

  • ID: FEED5769

Parameters:
Returns:

bool

TL Schema

account.installWallPaper#feed5769
wallpaper:InputWallPaper
settings:WallPaperSettings

= Bool

Parameter Tree

InstallWallPaper
├── wallpaper → InputWallPaper
│ ├── InputWallPaper
│ │ ├── id → long
│ │ └── access_hash → long
│ ├── InputWallPaperSlug
│ │ └── slug → string
│ └── InputWallPaperNoFile
│ └── id → long
└── 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(
    InstallWallPaper(
        wallpaper=InputWallPaper(
            id=0,
            access_hash=0
        ),
        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
        ),
    )
)