peerColorCollectible

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

Constructor schema is available as of layer 216. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
collectible_id long ID of the collectible gift ».
gift_emoji_id 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.
background_emoji_id long Custom emoji ID » used to generate the pattern.
accent_color int Accent color in RGB24 format, used for reply backgrounds and the user's name in messages.
colors Vector<int> 1-3 RGB24 colors to be used in the reply strip.
dark_accent_color flags.0?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).
dark_colors flags.1?Vector<int> 1-3 RGB24 colors to be used in the reply strip in dark mode (fallback to colors if absent).

Type

PeerColor

Related pages

Telegram Gifts

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

Custom emojis

Telegram allows including animated and static custom emojis inside of messages.

Accent colors

Telegram users and channels can change the accent color and background pattern of their profile page and their messages!