telegram api method · layer 229 · #ba4a3b5b
messages.readSavedHistory
Mark messages as read in a monoforum topic ».
definition
messages.readSavedHistory#ba4a3b5b parent_peer:InputPeer peer:InputPeer max_id:int = Bool;
parameters
| name | type | description |
|---|---|---|
parent_peer | InputPeer | ID of the monoforum group. |
peer | InputPeer | ID of the topic. |
max_id | int | If a positive value is passed, only messages with identifiers less or equal than the given one will be read. |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | PARENT_PEER_INVALID | The specified parent_peer is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 204–229
| id | layers |
|---|---|
| #ba4a3b5b | 204–229 |