Browse SDKs · WASM
SDKsWASMEnterprise

Get members who read a group message

Retrieve members who have or have not read a group message using pagination.

Copy

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesID of the group conversation.
clientMsgIDstringYesID of the message whose reader list to query.
filterGroupMessageReaderFilterYesWhether to retrieve members who have read or have not read the message.
offsetnumberYesPagination offset. Pass 0 for the first page.
countnumberYesMaximum number of members to retrieve.
Enum valueNumeric valueMeaning
GroupMessageReaderFilter.Read0Members who have read the message.
GroupMessageReaderFilter.UnRead1Members who have not read the message.
import { GroupMessageReaderFilter } from '@openim/wasm-client-sdk';

const { data: members } = await openimsdk.getGroupMessageReaderList({
  conversationID,
  clientMsgID,
  filter: GroupMessageReaderFilter.Read,
  offset: 0,
  count: 50,
});

When the Promise resolves, data is the current page of GroupMemberItem[]. For field descriptions, see List group members. Deduplicate by groupID:userID. The query establishes a snapshot and does not trigger a receipt event. Continue paging when the complete list is required.