messages.GetDialogUnreadMarks

class pyrogram.raw.functions.messages.GetDialogUnreadMarks

Get dialogs manually marked as unread

Details:
  • Layer: 227

  • ID: 21202222

Parameters:

parent_peer (InputPeer, optional) – Can be equal to the ID of a monoforum, to fetch monoforum topics manually marked as unread.

Returns:

List of DialogPeer

TL Schema

messages.getDialogUnreadMarks#21202222
flags:#
parent_peer:flags.0?InputPeer

= Vector<DialogPeer>

Parameter Tree

GetDialogUnreadMarks
└── parent_peer → InputPeer (optional)
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── 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
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    GetDialogUnreadMarks(
        parent_peer=await app.resolve_peer(chat_id),
    )
)