get_stories_history()

Client.get_stories_history()

Get stories history.

Usable by Users Bots
Parameters:
  • chat_id (``int``, *optional*) – Unique identifier (int) of the target channel. You can also use user profile/channel public link in form of t.me/<username> (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`` (On success, a generator yielding Story objects is returned.)

Example

# Get story history
async for story in app.get_stories_history():
    print(story)
Raises:

ValueError – In case of invalid arguments.: