getOutboxReadDate method

Future<Result<OutboxReadDateBase>> getOutboxReadDate({
  1. required InputPeerBase peer,
  2. required int msgId,
})

Get Outbox Read Date.

ID: 8c4bfe5d.

Implementation

Future<Result<OutboxReadDateBase>> getOutboxReadDate({
  required InputPeerBase peer,
  required int msgId,
}) async {
  // Preparing the request.
  final request = MessagesGetOutboxReadDate(peer: peer, msgId: msgId);

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<OutboxReadDateBase>();
}