help.peerColorOption
Contains info about a color palette ».
type tg.HelpPeerColorOption struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Hidden | bool | — | Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents. |
ColorID | int | yes | Palette ID. |
Colors | HelpPeerColorSetClass | — | Light mode palette. Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6 (i.e. the same colors used for the randomized fallback color palette). |
DarkColors | HelpPeerColorSetClass | — | Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent. |
ChannelMinLevel | int | — | Channels can use this palette only after reaching at least the boost level specified in this field. |
GroupMinLevel | int | — | Supergroups can use this palette only after reaching at least the boost level specified in this field. |
References
- Official documentation
- Generated Go reference
- TL definition:
help.peerColorOption#adec6ebe