messages.markDialogUnread #

Manually mark dialog as unread

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.markDialogUnread#8c5006f8 flags:# unread:flags.0?true parent_peer:flags.1?InputPeer peer:InputDialogPeer = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
unreadflags.0?trueMark as unread/read
parent_peerflags.1?InputPeerIf set, must be equal to the ID of a monoforum, and will affect the monoforum topic passed in peer.
peerInputDialogPeerDialog

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

Direct messages to channels #

Telegram supports direct messages to channels, which can also be used to suggest (even paid) channel posts.