messages.readEncryptedHistory #

Marks message history within a secret chat as read.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool;

Parameters #

NameTypeDescription
peerInputEncryptedChatSecret chat ID
max_dateintMaximum date value for received messages in history

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid.
400MAX_DATE_INVALIDThe specified maximum date is invalid.
400MSG_WAIT_FAILEDA waiting call returned an error.