messages.GetDialogs

class pyrogram.raw.functions.messages.GetDialogs

Returns the current user dialog list.

Details:
  • Layer: 223

  • ID: A0F4CB4F

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

  • folder_id (int 32-bit, optional) – Peer folder ID, for more info click here

Returns:

messages.Dialogs

TL Schema

messages.getDialogs#a0f4cb4f
flags:#
exclude_pinned:flags.0?true
folder_id:flags.1?int
offset_date:int
offset_id:int
offset_peer:InputPeer
limit:int
hash:long

= messages.Dialogs

Parameter Tree

GetDialogs
├── exclude_pinnedtrue (optional)
├── folder_idint (optional)
├── 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(
    GetDialogs(
        exclude_pinned=None,
        folder_id=0,
        offset_date=0,
        offset_id=0,
        offset_peer=await app.resolve_peer(chat_id),
        limit=0,
        hash=0,
    )
)