messages.MarkDialogUnread

class pyrogram.raw.functions.messages.MarkDialogUnread

Manually mark dialog as unread

Details:
  • Layer: 223

  • ID: 8C5006F8

Parameters:
  • peer (InputDialogPeer) – Dialog

  • unread (bool, optional) – Mark as unread/read

  • parent_peer (InputPeer, optional) – If set, must be equal to the ID of a monoforum, and will affect the monoforum topic passed in peer.

Returns:

bool

TL Schema

messages.markDialogUnread#8c5006f8
flags:#
unread:flags.0?true
parent_peer:flags.1?InputPeer
peer:InputDialogPeer

= Bool

Parameter Tree

MarkDialogUnread
├── unreadtrue (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
└── peerInputDialogPeer
├── InputDialogPeer
│ └── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
└── folder_idint

Example

await app.invoke(
    MarkDialogUnread(
        unread=None,
        parent_peer=await app.resolve_peer(chat_id),
        peer=InputDialogPeer(peer=await app.resolve_peer(chat_id)),
    )
)