Interface AccentColor

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.

interface AccentColor {
    @type: "accentColor";
    built_in_accent_color_id: number;
    dark_theme_colors: number[];
    id: number;
    light_theme_colors: number[];
    min_channel_chat_boost_level: number;
}

Properties

@type: "accentColor"
built_in_accent_color_id: number

Identifier of a built-in color to use in places, where only one color is needed; 0-6.

dark_theme_colors: number[]

The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.

id: number

Accent color identifier.

light_theme_colors: number[]

The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.

min_channel_chat_boost_level: number

The minimum chat boost level required to use the color in a channel chat.