get_story_albums()

async Client.get_story_albums()

Get all story albums (highlights) from a chat or channel.

Usable by Users Bots
Parameters:

chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

Returns:

List of StoryAlbum – On success, a list of story albums is returned.

Example

albums = await app.get_story_albums(chat_id)
for album in albums:
    print(album)