messages.readSavedHistory #

Mark messages as read in a monoforum topic ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.readSavedHistory#ba4a3b5b parent_peer:InputPeer peer:InputPeer max_id:int = Bool;

Parameters #

NameTypeDescription
parent_peerInputPeerID of the monoforum group.
peerInputPeerID of the topic.
max_idintIf a positive value is passed, only messages with identifiers less than or equal to the given one will be read.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PARENT_PEER_INVALIDThe specified parent_peer is invalid.

Direct messages to channels #

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