Layer 220
AccountGetTheme
Get theme information
method
Users
account.getTheme#3a5869ec format:string theme:InputTheme = Theme;
Parameters
| Name | Type | Description |
|---|---|---|
| Format | string | Theme format, a string that identifies the theming engines supported by the client |
| Theme | InputTheme | Theme |
Returns
ThemePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | THEME_FORMAT_INVALID | Invalid theme format provided. |
| 400 | THEME_INVALID | Invalid theme provided. |
| 400 | THEME_SLUG_INVALID | The specified theme slug is invalid. |
Gogram Example
// AccountGetTheme - positional arguments result, err := client.AccountGetTheme("...", &tg.InputTheme{}) if err != nil { // handle error } // result is *tg.Theme