Layer 220
BotAppSettings
Mini app settings
constructor
botAppSettings#c99b1950 flags:# placeholder_path:flags.0?bytes background_color:flags.1?int background_dark_color:flags.2?int header_color:flags.3?int header_dark_color:flags.4?int = BotAppSettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| PlaceholderPath | flags.0?bytes | SVG placeholder logo, compressed using the same format used for vector thumbnails. |
| BackgroundColor | flags.1?int | Default light mode background color |
| BackgroundDarkColor | flags.2?int | Default dark mode background color |
| HeaderColor | flags.3?int | Default light mode header color |
| HeaderDarkColor | flags.4?int | Default dark mode header color |
Returns
BotAppSettingsGogram Example
// Creating BotAppSettings constructor obj := &tg.BotAppSettings{ // Optional fields: // PlaceholderPath: []byte{}, // BackgroundColor: 0, // BackgroundDarkColor: 0, // HeaderColor: 0, // ... more optional fields }