messages.MarkDialogUnread
- class pyrogram.raw.functions.messages.MarkDialogUnread
Manually mark dialog as unread
- Details:
Layer:
223ID:
8C5006F8
- Parameters:
peer (
InputDialogPeer) – Dialogunread (
bool, optional) – Mark as unread/readparent_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
├── unread →
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│ ├──
InputPeerUserFromMessage│ │ ├── 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└── peer →
InputDialogPeer├──
InputDialogPeer│ └── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage└── folder_id →
intExample
await app.invoke(
MarkDialogUnread(
unread=None,
parent_peer=await app.resolve_peer(chat_id),
peer=InputDialogPeer(peer=await app.resolve_peer(chat_id)),
)
)