stories.DeleteAlbum

class pyrogram.raw.functions.stories.DeleteAlbum

Delete a story album.

Details:
  • Layer: 223

  • ID: 8D3456D0

Parameters:
  • peer (InputPeer) – Owned peer where the album is located.

  • album_id (int 32-bit) – ID of the album to delete.

Returns:

bool

TL Schema

stories.deleteAlbum#8d3456d0
peer:InputPeer
album_id:int

= Bool

Parameter Tree

DeleteAlbum
├── 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

Example

await app.invoke(
    DeleteAlbum(
        peer=await app.resolve_peer(chat_id),
        album_id=0,
    )
)