messages.readDiscussion #

Mark a thread as read

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool;

Parameters #

NameTypeDescription
peerInputPeerGroup ID
msg_idintID of message that started the thread
read_max_idintID up to which thread messages were read

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.

Message threads #

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.