get_unread_mentions()

async Client.get_unread_mentions()

Get messages with unread mentions in a chat.

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

  • offset_id (int, optional) – Only return messages starting from the specified id.

  • add_offset (int, optional) – Number of list elements to skip.

  • limit (int, optional) – Number of results to return. Defaults to 100.

  • max_id (int, optional) – If positive, only messages with IDs less than max_id will be returned.

  • min_id (int, optional) – If positive, only messages with IDs bigger than min_id will be returned.

  • top_msg_id (int, optional) – Thread/topic message ID.

Returns:

Messages – The messages with unread mentions.

Example

mentions = await app.get_unread_mentions(chat_id)