stories.CreateAlbum

class pyrogram.raw.functions.stories.CreateAlbum

Creates a story album.

Details:
  • Layer: 223

  • ID: A36396E5

Parameters:
  • peer (InputPeer) – The owned peer where to create the album.

  • title (str) – Album name.

  • stories (List of int 32-bit) – Stories to add to the album.

Returns:

StoryAlbum

TL Schema

stories.createAlbum#a36396e5
peer:InputPeer
title:string
stories:Vector<int>

= StoryAlbum

Parameter Tree

CreateAlbum
├── 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
├── titlestring
└── storiesVector < int >

Example

await app.invoke(
    CreateAlbum(
        peer=await app.resolve_peer(chat_id),
        title="text",
        stories=[0],
    )
)