account.saveTheme
Save a theme
func (c *Client) AccountSaveTheme(ctx context.Context, request *AccountSaveThemeRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountSaveTheme(ctx, &tg.AccountSaveThemeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Theme | InputThemeClass | yes | Theme to save |
Unsave | bool | yes | Unsave |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_INVALID | Invalid theme provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.saveTheme#f257106c