messages.readHistory
Marks message history as read.
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | Target user or group |
max_id | int | Yes | If a positive value is passed, only messages with identifiers less than or equal to the given one will be read |
Responses
messages.AffectedMessages
MTProto RPC
- 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.