read_mentions()

Client.read_mentions()

Mark a mention in the chat as read.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).

  • topic_id (int, optional) – Mark as read only mentions to messages within the specified forum topic. By default, no topic is applied and all mentions marked as read.

Returns:

bool - On success, True is returned.

Example

# Mark the chat mention as read
await app.read_mentions(chat_id)

# Mark the chat mention as read in specified topic
await app.read_mentions(chat_id, topic_id)