Layer 227
method Users
account.uploadWallPaper#e39a8f03 flags:# for_chat:flags.0?true file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;

Parameters

Name Type Description
ForChat flags .0? true Set this flag when uploading wallpapers to be passed to messages. set Chat Wall Paper.
File InputFile The JPG/PNG wallpaper
MimeType string MIME type of uploaded wallpaper
Settings WallPaperSettings Wallpaper settings

Returns

WallPaper

Gogram Example

// AccountUploadWallPaper - positional arguments
result, err := client.AccountUploadWallPaper(nil, &tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, "Hello, World!", &tg.WallPaperSettings{})
if err != nil {
    // handle error
}
// result is *tg.WallPaper

Possible Errors

Code Type Description
400 WALLPAPER_FILE_INVALID The specified wallpaper file is invalid.
400 WALLPAPER_MIME_INVALID The specified wallpaper MIME type is invalid.