inviteInGroup method

Future<V2TimValueCallback<String>> inviteInGroup({
  1. required String groupID,
  2. required List<String> inviteeList,
  3. required String data,
  4. int timeout = 30,
  5. bool onlineUserOnly = false,
})

Implementation

Future<V2TimValueCallback<String>> inviteInGroup({
  required String groupID,
  required List<String> inviteeList,
  required String data,
  int timeout = 30,
  bool onlineUserOnly = false,
}) async {
  return V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "inviteInGroup",
        buildParam(
          {
            "groupID": groupID,
            "inviteeList": inviteeList,
            "data": data,
            "timeout": timeout,
            "onlineUserOnly": onlineUserOnly,
          },
        ),
      ),
    ),
  );
}