Raw.help.PeerColorOption

Raw.help.PeerColorOption

Contains info about a color palette.

help.peerColorOption#adec6ebe flags:# hidden:flags.0?true color_id:int colors:flags.1?help.PeerColorSet dark_colors:flags.2?help.PeerColorSet channel_min_level:flags.3?int group_min_level:flags.4?int = help.PeerColorOption;
export namespace Raw {
  export namespace help {
    export class PeerColorOption {
      constructor(params: {
        hidden?: boolean;
        colorId: number;
        colors?: Raw.help.TypePeerColorSet;
        darkColors?: Raw.help.TypePeerColorSet;
        channelMinLevel?: number;
        groupMinLevel?: number;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xadec6ebe

Property

  • hidden : boolean or undefined

    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.

  • colorId : number

    Palette id.

  • colors : Raw.help.TypePeerColorSet or undefined

    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 (i.e. the same colors used for randomized fallback message accent colors).

  • darkColors : Raw.help.TypePeerColorSet or undefined

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

  • channelMinLevel : number or undefined

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

  • groupMinLevel : number or undefined

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