Marks message history within a secret chat as read.
Method schema is available as of layer 8. Switch ยป
Name | Type | Description |
---|---|---|
peer | InputEncryptedChat | Secret chat ID |
max_date | int | Maximum date value for received messages in history |
Code | Type | Description |
---|---|---|
400 | CHAT_ID_INVALID | The provided chat id is invalid. |
400 | MAX_DATE_INVALID | The specified maximum date is invalid. |
400 | MSG_WAIT_FAILED | A waiting call returned an error. |