Skip to content

setChatAccentColor

Function · TDLib 1.8.67 · d1085f9c

Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right

setChatAccentColor(
  chat_id: int53,
  accent_color_id: int32,
  background_custom_emoji_id: int64
) → Ok

chat_id

int53

Chat identifier

accent_color_id

int32

Identifier of the accent color to use. The chat must have at least accentColor.min_channel_chat_boost_level boost level to pass the corresponding color

background_custom_emoji_id

int64

Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.can_set_background_custom_emoji to check whether a custom emoji can be set