account.UploadWallPaper
- class pyrogram.raw.functions.account.UploadWallPaper
Create and upload a new wallpaper
- Details:
Layer:
223ID:
E39A8F03
- Parameters:
file (
InputFile) – The JPG/PNG wallpapermime_type (
str) – MIME type of uploaded wallpapersettings (
WallPaperSettings) – Wallpaper settingsfor_chat (
bool, optional) – Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper.
- Returns:
TL Schema
account.uploadWallPaper#e39a8f03
flags:#
for_chat:flags.0?true
file:InputFile
mime_type:string
settings:WallPaperSettings
= WallPaper
Parameter Tree
UploadWallPaper
├── for_chat →
true (optional)├── file →
InputFile│ ├──
InputFile│ │ ├── id →
long│ │ ├── parts →
int│ │ ├── name →
string│ │ └── md5_checksum →
string│ ├──
InputFileBig│ │ ├── id →
long│ │ ├── parts →
int│ │ └── name →
string│ └──
InputFileStoryDocument│ └── id →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── mime_type →
string└── 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(
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
),
)
)