stories.DeleteAlbum

class pyrogram.raw.functions.stories.DeleteAlbum

Delete a story album.

Details:
  • Layer: 227

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

Example

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