read_stories()#
- Client.read_stories()#
Read stories.
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_stories(chat_id) # Mark stories as read only up to the given story id await app.read_stories(chat_id, 123)