update_color()#

Client.update_color()#

Update color

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • color (ReplyColor | ProfileColor) – Color type. Pass ReplyColor to set reply color or ProfileColor to set profile color.

  • background_emoji_id (int, optional) – Unique identifier of the custom emoji.

Returns:

bool – On success, in case the passed-in session is authorized, True is returned.

Example

await app.update_color(chat_id, enums.ReplyColor.RED)