refuseGroupApplication method

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

拒绝某一条加群申请

web 端使用时必须传入webMessageInstance 字段。 对应【群系统通知】的消息实例

Implementation

@override
Future<V2TimCallback> refuseGroupApplication({
  required String groupID,
  String? reason,
  required String fromUser,
  required String toUser,
  required int addTime,
  required int type,
  String? webMessageInstance,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "refuseGroupApplication",
        buildGroupManagerParam(
          {"groupID": groupID, "reason": reason, "fromUser": fromUser, "toUser": toUser, "addTime": addTime, "type": type, "webMessageInstance": webMessageInstance},
        ),
      ),
    ),
  );
}