messages.GetSavedDialogs

class pyrogram.raw.functions.messages.GetSavedDialogs

Returns the current saved dialog list » or monoforum topic list ».

Details:
  • Layer: 223

  • ID: 1E91FC99

Parameters:
  • offset_date (int 32-bit) – Offsets for pagination, for more info click here

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here (top_message ID used for pagination)

  • offset_peer (InputPeer) – Offset peer for pagination

  • limit (int 32-bit) – Number of list elements to be returned

  • hash (int 64-bit) – Hash used for caching, for more info click here

  • exclude_pinned (bool, optional) – Exclude pinned dialogs

  • parent_peer (InputPeer, optional) – If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list.

Returns:

messages.SavedDialogs

TL Schema

messages.getSavedDialogs#1e91fc99
flags:#
exclude_pinned:flags.0?true
parent_peer:flags.1?InputPeer
offset_date:int
offset_id:int
offset_peer:InputPeer
limit:int
hash:long

= messages.SavedDialogs

Parameter Tree

GetSavedDialogs
├── exclude_pinnedtrue (optional)
├── parent_peerInputPeer (optional)
│ ├── 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
├── offset_dateint
├── offset_idint
├── offset_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
├── limitint
└── hashlong

Example

await app.invoke(
    GetSavedDialogs(
        exclude_pinned=None,
        parent_peer=await app.resolve_peer(chat_id),
        offset_date=0,
        offset_id=0,
        offset_peer=await app.resolve_peer(chat_id),
        limit=0,
        hash=0,
    )
)