stories.Albums

class pyrogram.raw.types.stories.Albums

Story albums ».

Constructor of Albums.

Details:
  • Layer: 227

  • ID: C3987A3A

Parameters:
  • hash (int 64-bit) – Hash to pass to stories.getAlbums to avoid returning any results if they haven’t changed.

  • albums (List of StoryAlbum) – The albums.

Functions:

This object can be returned by 1 function.

stories.GetAlbums

Get story albums created by a peer.

TL Schema

stories.albums#c3987a3a
hash:long
albums:Vector<StoryAlbum>

= stories.Albums

Parameter Tree

Albums
├── hash → long
└── albums → Vector < StoryAlbum >
└── StoryAlbum
├── album_id → int
├── title → string
├── icon_photo → Photo (optional)
│ ├── PhotoEmpty
│ │ └── id → long
│ └── Photo
│ ├── has_stickers → true (optional)
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── sizes → Vector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_sizes → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ └── dc_id → int
└── icon_video → Document (optional)
├── DocumentEmpty
│ └── id → long
└── Document
├── id → long
├── access_hash → long
├── file_reference → bytes
├── date → int
├── mime_type → string
├── size → long
├── thumbs → Vector < PhotoSize > (optional)
│ ├── PhotoSizeEmpty
│ ├── PhotoSize
│ ├── PhotoCachedSize
│ ├── PhotoStrippedSize
│ ├── PhotoSizeProgressive
│ └── PhotoPathSize
├── video_thumbs → Vector < VideoSize > (optional)
│ ├── VideoSize
│ ├── VideoSizeEmojiMarkup
├── dc_id → int
└── attributes → Vector < DocumentAttribute >

Example

Albums(
    hash=0,
    albums=[
            StoryAlbum(
                album_id=0,
                title="text"
            )
        ],
)