Layer 224
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 |
|---|---|---|
| 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
ThemeGogram Example
// AccountUpdateTheme - using Params struct result, err := client.AccountUpdateTheme(&tg.AccountUpdateThemeParams{ Format: "Hello, World!", Theme: &tg.InputTheme{}, // Optional fields: // Slug: "Hello, World!", // Title: "Hello, World!", // Document: &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, // Settings: []tg.InputThemeSettings{&tg.InputThemeSettings{}}, }) if err != nil { // handle error } // result is *tg.Theme
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_INVALID | Invalid theme provided. |