SDKsuni-app
Publish a group announcement
OpenIM uni-app / uni-app x SDK guide for Publish a group announcement.
Update a group's announcement through setGroupInfo() and pass only notification in addition to groupID.
import { setGroupInfo } from '@/uni_modules/unix-openim-sdk'
await setGroupInfo({ groupID, notification: 'Release on Friday at 17:00' })Passing only the announcement avoids overwriting group name, avatar, or policy fields. Promise success means that the update request completed. Merge onGroupInfoChanged or query the group again to confirm notification, notificationUpdateTime, and notificationUserID.
Announcements are visible to group members. Do not include tokens, internal secrets, or moderation evidence, and apply the product's length and content validation before submission.
Was this page helpful?