account.updateTheme
Update theme
func (c *Client) AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountUpdateTheme(ctx, &tg.AccountUpdateThemeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *Theme
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Format | string | yes | Theme format, a string that identifies the theming engines supported by the client |
Theme | InputThemeClass | yes | Theme to update |
Slug | string | — | Unique theme ID |
Title | string | — | Theme name |
Document | InputDocumentClass | — | Theme file |
Settings | []InputThemeSettings | — | Theme settings |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_INVALID | Invalid theme provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.updateTheme#2bf40ccc