Skip to main content

peerColorCollectible

Represents a color palette » associated to a collectible gift », see here » for more info.

type tg.PeerColorCollectible struct { /* ... */ }

Implements PeerColor.

Fields

NameTypeRequiredDescription
CollectibleIDint64yesID of the collectible gift ».
GiftEmojiIDint64yesCustom 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.
BackgroundEmojiIDint64yesCustom emoji ID » used to generate the pattern.
AccentColorintyesAccent color in RGB24 format, used for reply backgrounds and the user's name in messages.
Colors[]intyes1-3 RGB24 colors to be used in the reply strip.
DarkAccentColorintAccent 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[]int1-3 RGB24 colors to be used in the reply strip in dark mode (fallback to colors if absent).

References