set_chat_accent_color()

async Client.set_chat_accent_color()

Change the accent color of your account or of a channel.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. Pass “me” or “self” to change the color of your own account.

  • accent_color_id (int, optional) – Identifier of the accent color to use. Pass None to remove the current color.

  • background_custom_emoji_id (int, optional) – Identifier of the custom emoji shown in the profile or the message background.

  • for_profile (bool, optional) – Pass True to change the profile color instead of the message accent color.

Returns:

bool – On success, True is returned.

Raises:

ValueError – In case the chat is neither your own account nor a channel.

Example

await app.set_chat_accent_color("me", 5)