get_archived_stories()¶
- Client.get_archived_stories()¶
Get all archived stories from a chat by using chat identifier.
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).
limit (``int``, *optional*) – Limits the number of stories to be retrieved. By default, no limit is applied and all stories are returned.
offset_id (``int``, *optional*) – Identifier of the first story to be returned.
- Returns:¶
``Generator`` (A generator yielding
Storyobjects.)
Example
# Get archived stories from specific chat async for story in app.get_archived_stories(chat_id): print(story)