get_chat_stories()#

Client.get_chat_stories()#

Get all non expired 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 user. For your personal story you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).

Returns:

Generator – On success, a generator yielding Story objects is returned.

Example

# Get all non expired stories from spesific chat
async for story in app.get_chat_stories(chat_id):
    print(story)
Raises:

ValueError – In case of invalid arguments.