Layer 220
InputThemeSettings
Theme settings
constructor
inputThemeSettings#8fde504f flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector<int> wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| MessageColorsAnimated | flags.2?true | If set, the freeform gradient fill needs to be animated on every sent message |
| BaseTheme | BaseTheme | Default theme on which this theme is based |
| AccentColor | int | Accent color, ARGB format |
| OutboxAccentColor | flags.3?int | Accent color of outgoing messages in ARGB format |
| MessageColors | Vector<int> | The fill to be used as a background for outgoing messages, in RGB 24 format. If just one or two equal colors are provided, describes a solid fill of a background. If two different colors are provided, describes the top and bottom colors of a 0-degree gradient. If three or four colors are provided, describes a freeform gradient fill of a background. |
| Wallpaper | flags.1?InputWallPaper | input Wall Paper or input Wall Paper Slug when passing wallpaper files for image or pattern wallpapers, input Wall Paper No File with id=0 otherwise. |
| WallpaperSettings | flags.1?WallPaperSettings | Wallpaper settings. |
Returns
InputThemeSettingsGogram Example
// Creating InputThemeSettings constructor obj := &tg.InputThemeSettings{ BaseTheme: &tg.BaseTheme{}, AccentColor: 0, // Optional fields: // MessageColorsAnimated: true, // OutboxAccentColor: 0, // MessageColors: []int{}, // Wallpaper: &tg.InputWallPaper{}, // ... more optional fields }