getPeerProfileColors method

Future<Result<HelpPeerColorsBase>> getPeerProfileColors({
  1. required int hash,
})

Get Peer Profile Colors.

ID: abcfa9fd.

Implementation

Future<Result<HelpPeerColorsBase>> getPeerProfileColors({
  required int hash,
}) async {
  // Preparing the request.
  final request = HelpGetPeerProfileColors(
    hash: hash,
  );

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

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