Layer 220
MessagesReadEncryptedHistory
Marks message history within a secret chat as read.
method
Users
messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputEncryptedChat | Secret chat ID |
| MaxDate | int | Maximum date value for received messages in history |
Returns
BoolPossible Errors
| 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. |
Gogram Example
// MessagesReadEncryptedHistory - positional arguments result, err := client.MessagesReadEncryptedHistory(&tg.InputEncryptedChat{}, 0) if err != nil { // handle error } // result is *tg.Bool