readEncryptedHistory method
Future<Result<Boolean> >
readEncryptedHistory({
- required InputEncryptedChatBase peer,
- required DateTime maxDate,
Read Encrypted History.
ID: 7f4b690a
.
Implementation
Future<Result<Boolean>> readEncryptedHistory({
required InputEncryptedChatBase peer,
required DateTime maxDate,
}) async {
// Preparing the request.
final request = MessagesReadEncryptedHistory(
peer: peer,
maxDate: maxDate,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}