peerColorCollectible
Represents a color palette » associated to a collectible gift », see here » for more info.
type tg.PeerColorCollectible struct { /* ... */ }
Implements PeerColor.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
CollectibleID | int64 | yes | ID of the collectible gift ». |
GiftEmojiID | int64 | yes | Custom emoji ID » of the collectible gift: a single copy of this custom emoji should be displayed as-is (without recoloring it, unlike for background_emoji_id) in the top-right corner of the palette. |
BackgroundEmojiID | int64 | yes | Custom emoji ID » used to generate the pattern. |
AccentColor | int | yes | Accent color in RGB24 format, used for reply backgrounds and the user's name in messages. |
Colors | []int | yes | 1-3 RGB24 colors to be used in the reply strip. |
DarkAccentColor | int | — | Accent color in RGB24 format, used for reply backgrounds and the user's name in messages in dark mode (fallback to accent_color if absent). |
DarkColors | []int | — | 1-3 RGB24 colors to be used in the reply strip in dark mode (fallback to colors if absent). |
References
- Official documentation
- Generated Go reference
- TL definition:
peerColorCollectible#b9c0639a