acceptGroupApplication method

  1. @override
Future<V2TimCallback> acceptGroupApplication({
  1. required String groupID,
  2. String? reason,
  3. required String fromUser,
  4. required String toUser,
  5. int? addTime,
  6. int? type,
  7. String? webMessageInstance,
})
override

同意某一条加群申请

Implementation

@override
Future<V2TimCallback> acceptGroupApplication({
  required String groupID,
  String? reason,
  required String fromUser,
  required String toUser,
  int? addTime,
  int? type,
  String? webMessageInstance,
}) async {
  Map<String, dynamic> param = {"groupID": groupID, "reason": reason, "fromUser": fromUser, "toUser": toUser, "addTime": addTime, "type": type, "webMessageInstance": webMessageInstance};
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "acceptGroupApplication",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("acceptGroupApplication", param, resp.toLogString());
  return resp;
}