messages.GetDialogs

class pyrogram.raw.functions.messages.GetDialogs

Returns the current user dialog list.

Details:
  • Layer: 227

  • 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_pinned → true (optional)
├── folder_id → int (optional)
├── 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(
    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,
    )
)