acceptCall method

Future<Result<PhonePhoneCallBase>> acceptCall({
  1. required InputPhoneCallBase peer,
  2. required Uint8List gB,
  3. required PhoneCallProtocolBase protocol,
})

Accept Call.

ID: 3bd2b4a0.

Implementation

Future<Result<PhonePhoneCallBase>> acceptCall({
  required InputPhoneCallBase peer,
  required Uint8List gB,
  required PhoneCallProtocolBase protocol,
}) async {
  // Preparing the request.
  final request = PhoneAcceptCall(
    peer: peer,
    gB: gB,
    protocol: protocol,
  );

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

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