messages.GetSavedDialogs

class pyrogram.raw.functions.messages.GetSavedDialogs

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

Details:
  • Layer: 227

  • 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_pinned → true (optional)
├── parent_peer → InputPeer (optional)
│ ├── 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
├── offset_date → int
├── offset_id → int
├── offset_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
├── limit → int
└── hash → long

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,
    )
)