Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>help_PeerColorOption_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class help_PeerColorOption_
import { help_PeerColorOption_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Contains info about a color palette ».

Constructors

new
help_PeerColorOption_(params: { hidden?: true; color_id: number; colors?: enums.help.PeerColorSet; dark_colors?: enums.help.PeerColorSet; channel_min_level?: number; group_min_level?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
channel_min_level: number

Channels can use this palette only after reaching at least the boost level specified in this field.

color_id: number

Palette ID.

optional
colors: enums.help.PeerColorSet

Light mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6.

optional
dark_colors: enums.help.PeerColorSet

Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent.

optional
group_min_level: number
optional
hidden: true

Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc