getDialogUnreadMarks method

Future<Result<Vector<DialogPeerBase>>> getDialogUnreadMarks({
  1. InputPeerBase? parentPeer,
})

Get Dialog Unread Marks.

ID: 21202222.

Implementation

Future<Result<Vector<DialogPeerBase>>> getDialogUnreadMarks({
  InputPeerBase? parentPeer,
}) async {
  // Preparing the request.
  final request = MessagesGetDialogUnreadMarks(parentPeer: parentPeer);

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

  // Return the result.
  return response._toVector<DialogPeerBase>();
}