stories.UpdateAlbum

class pyrogram.raw.functions.stories.UpdateAlbum

Rename a story albums », or add, delete or reorder stories in it.

Details:
  • Layer: 223

  • ID: 5E5259B6

Parameters:
  • peer (InputPeer) – Peer where the album is posted.

  • album_id (int 32-bit) – Album ID.

  • title (str, optional) – New album title.

  • delete_stories (List of int 32-bit, optional) – If set, deletes the specified stories from the album.

  • add_stories (List of int 32-bit, optional) – If set, adds the specified stories to the album.

  • order (List of int 32-bit, optional) – If set, reorders the stories in the album by their IDs.

Returns:

StoryAlbum

TL Schema

stories.updateAlbum#5e5259b6
flags:#
peer:InputPeer
album_id:int
title:flags.0?string
delete_stories:flags.1?Vector<int>
add_stories:flags.2?Vector<int>
order:flags.3?Vector<int>

= StoryAlbum

Parameter Tree

UpdateAlbum
├── 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
├── album_idint
├── titlestring (optional)
├── delete_storiesVector < int > (optional)
├── add_storiesVector < int > (optional)
└── orderVector < int > (optional)

Example

await app.invoke(
    UpdateAlbum(
        peer=await app.resolve_peer(chat_id),
        album_id=0,
        title="text",
        delete_stories=[0],
        add_stories=[0],
        order=[0],
    )
)