account.saveWallPaper
Install/uninstall wallpaper
func (c *Client) AccountSaveWallPaper(ctx context.Context, request *AccountSaveWallPaperRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountSaveWallPaper(ctx, &tg.AccountSaveWallPaperRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Wallpaper | InputWallPaperClass | yes | Wallpaper to install or uninstall |
Unsave | bool | yes | Uninstall wallpaper? |
Settings | WallPaperSettings | yes | Wallpaper settings |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | WALLPAPER_INVALID | The specified wallpaper is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.saveWallPaper#6c5a5b37