Skip to main content

account.installWallPaper

Install wallpaper

func (c *Client) AccountInstallWallPaper(ctx context.Context, request *AccountInstallWallPaperRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountInstallWallPaper(ctx, &tg.AccountInstallWallPaperRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
WallpaperInputWallPaperClassyesWallpaper to install
SettingsWallPaperSettingsyesWallpaper settings

Returns

bool

Possible errors

CodeTypeDescription
400WALLPAPER_INVALIDThe specified wallpaper is invalid.

References