account.uploadWallPaper #

Create and upload a new wallpaper

Layer 223

wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
---functions---
account.uploadWallPaper#e39a8f03 flags:# for_chat:flags.0?true file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
for_chatflags.0?trueSet this flag when uploading wallpapers to be passed to messages.setChatWallPaper.
fileInputFileThe JPG/PNG wallpaper
mime_typestringMIME type of uploaded wallpaper
settingsWallPaperSettingsWallpaper settings

Result #

WallPaper

Only users can use this method #

Possible errors #

CodeTypeDescription
400WALLPAPER_FILE_INVALIDThe specified wallpaper file is invalid.
400WALLPAPER_MIME_INVALIDThe specified wallpaper MIME type is invalid.

messages.setChatWallPaper #

Set a custom wallpaper » in a specific private chat with another user.

Chat wallpapers #

Telegram apps support generating, sharing and synchronizing chat backgrounds.