Raw.channels.UpdateColor

Raw.channels.UpdateColor

Update the accent color and background custom emoji of a channel.

channels.updateColor#d8aa3671 flags:# for_profile:flags.1?true channel:InputChannel color:flags.2?int background_emoji_id:flags.0?long = Updates;
export namespace Raw {
  export namespace channels {
    export class UpdateColor {
      constructor(params: {
        forProfile?: boolean;
        channel: Raw.TypeInputChannel;
        color?: number;
        backgroundEmojiId?: bigint;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xd8aa3671

Property

  • forProfile : boolean or undefined

    Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed. channels can change both message and profile palettes; supergroups can only change the profile palette, of course after reaching the appropriate boost level.

  • channel : Raw.TypeInputChannel

    Channel whose accent color should be changed.

  • color : number or undefined

    Id of the accent color palette to use (not rgb24, see here for more info); if not set, the default palette is used.

  • backgroundEmojiId : bigint or undefined

    Custom emoji id used in the accent color pattern.

Results

Raw.TypeUpdates