stories.GetAlbums

class pyrogram.raw.functions.stories.GetAlbums

Get story albums created by a peer.

Details:
  • Layer: 223

  • ID: 25B3EAC7

Parameters:
  • peer (InputPeer) – The peer.

  • hash (int 64-bit) – The hash from a previously returned stories.albums, to avoid returning any results if they haven’t changed.

Returns:

stories.Albums

TL Schema

stories.getAlbums#25b3eac7
peer:InputPeer
hash:long

= stories.Albums

Parameter Tree

GetAlbums
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── hashlong

Example

await app.invoke(
    GetAlbums(
        peer=await app.resolve_peer(chat_id),
        hash=0,
    )
)