Create and upload a new wallpaper
 Method schema is available as of layer 158. Switch »
| Name | Type | Description | 
|---|---|---|
| flags | # | Flags, see TL conditional fields | 
| for_chat | flags.0?true | Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper. | 
| file | InputFile | The JPG/PNG wallpaper | 
| mime_type | string | MIME type of uploaded wallpaper | 
| settings | WallPaperSettings | Wallpaper settings | 
| Code | Type | Description | 
|---|---|---|
| 400 | WALLPAPER_FILE_INVALID | The specified wallpaper file is invalid. | 
| 400 | WALLPAPER_MIME_INVALID | The specified wallpaper MIME type is invalid. | 
Set a custom wallpaper » in a specific private chat with another user.
Telegram apps support generating, sharing and synchronizing chat backgrounds.