telegram api method · layer 229 · #ba4a3b5b

messages.readSavedHistory

usable by users

Mark messages as read in a monoforum topic ».

definition

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 or equal than the given one will be read.

returns

Bool

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PARENT_PEER_INVALIDThe specified parent_peer is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 204–229

idlayers
#ba4a3b5b204–229