Browse SDKs · WASM
Platform
SDKsWASM

Publish a group announcement

Set or update a group announcement.

Copy

notification is the group announcement and differs from introduction, which describes the group.

await openimsdk.setGroupInfo({
  groupID,
  notification: announcement.trim(),
});

Pass an empty string to clear the announcement. OpenIMServer validates permission to change it. The client can hide the action based on the current member role but must not rely on frontend checks alone.

Resolving the Promise confirms that OpenIMServer processed the announcement update. The SDK subsequently emits SdkEvent.OnGroupInfoChanged to notify members. Merge the update into your group cache using groupID. For complete event listener configuration, see Group overview.