read_chat_stories()¶
- Client.read_chat_stories()¶
Mark all stories up to a certain identifier as read, for a given chat.
Usable by Users Bots
- Parameters:¶
chat_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat. For a contact that exists in your Telegram address book you can use his phone number (str).
max_id (``int``, *optional*) – The id of the last story you want to mark as read. All the stories before this one will be marked as read as well. Defaults to 0 (mark every unread message as read).
- Returns:¶
List of ``int`` (On success, a list of read stories is returned.)
Example
# Read all stories await app.read_chat_stories(chat_id) # Mark stories as read only up to the given story id await app.read_chat_stories(chat_id, 123)