Layer 220
AccountUpdateTheme
Update theme
method
Users
account.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Format | string | Theme format, a string that identifies the theming engines supported by the client |
| Theme | InputTheme | Theme to update |
| Slug | flags.0?string | Unique theme ID |
| Title | flags.1?string | Theme name |
| Document | flags.2?InputDocument | Theme file |
| Settings | Vector<InputThemeSettings> | Theme settings |
Returns
ThemePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_INVALID | Invalid theme provided. |
Gogram Example
// AccountUpdateTheme - using Params struct result, err := client.AccountUpdateTheme(&tg.AccountUpdateThemeParams{ Format: "...", Theme: &tg.InputTheme{}, // Optional fields: // Slug: "...", // Title: "...", // Document: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, // Settings: []tg.InputThemeSettings{&tg.InputThemeSettings{}}, }) if err != nil { // handle error } // result is *tg.Theme