stories.UpdateAlbum

class pyrogram.raw.functions.stories.UpdateAlbum

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

Details:
  • Layer: 227

  • 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
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── album_id → int
├── title → string (optional)
├── delete_stories → Vector < int > (optional)
├── add_stories → Vector < int > (optional)
└── order → Vector < 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],
    )
)