receivedCall method

Future<Result<Boolean>> receivedCall({
  1. required InputPhoneCallBase peer,
})

Received Call.

ID: 17d54f61.

Implementation

Future<Result<Boolean>> receivedCall({
  required InputPhoneCallBase peer,
}) async {
  // Preparing the request.
  final request = PhoneReceivedCall(
    peer: peer,
  );

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

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