setGroupAttributes method

  1. @override
Future<V2TimCallback> setGroupAttributes({
  1. required String groupID,
  2. required Map<String, String> attributes,
})
override

设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。

Implementation

@override
Future<V2TimCallback> setGroupAttributes({
  required String groupID,
  required Map<String, String> attributes,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupAttributes",
        buildGroupManagerParam(
          {
            "groupID": groupID,
            "attributes": attributes,
          },
        ),
      ),
    ),
  );
}