Layer 227
PeerColorCollectible
Represents a color palette associated to a collectible gift, see here for more info.
constructor
peerColorCollectible#b9c0639a flags:# collectible_id:long gift_emoji_id:long background_emoji_id:long accent_color:int colors:Vector<int> dark_accent_color:flags.0?int dark_colors:flags.1?Vector<int> = PeerColor;
Parameters
| Name | Type | Description |
|---|---|---|
| CollectibleId | long | ID of the collectible gift. |
| GiftEmojiId | long | 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 | long | Custom emoji ID used to generate the pattern. |
| AccentColor | int | Accent color in RGB 24 format, used for reply backgrounds and the user's name in messages. |
| Colors | Vector < int > | 1-3 RGB 24 colors to be used in the reply strip. |
| DarkAccentColor | flags .0? int | Accent color in RGB 24 format, used for reply backgrounds and the user's name in messages in dark mode (fallback to accent_color if absent). |
| DarkColors | flags .1? Vector < int > | 1-3 RGB 24 colors to be used in the reply strip in dark mode (fallback to colors if absent). |
Returns
PeerColorGogram Example
// Creating PeerColorCollectible constructor obj := &tg.PeerColorCollectible{ CollectibleId: int64(1234567890), GiftEmojiId: int64(1234567890), BackgroundEmojiId: int64(1234567890), AccentColor: 42, Colors: &tg.VectorInt{}, DarkAccentColor: nil, // ... more required fields }