read_stories()

Client.read_stories()

Mark stories as read up to a certain ID.

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

  • max_id (int) – The ID of the last story to mark as read. All stories with ID <= max_id will be marked as read.

Returns:

List of int – List of story IDs that were marked as read.

Example

# Mark all stories up to ID 12345 as read
read_ids = await app.read_stories("username", 12345)