浏览 SDKs · WASM
SDKsWASM商业版

查询群消息已读成员

使用 WASM SDK 分页查询群消息的已读或未读成员。

复制

参数说明

参数类型是否必填说明
conversationIDstring群聊会话 ID。
clientMsgIDstring要查询阅读成员的消息 ID。
filterGroupMessageReaderFilter查询已读或未读成员。
offsetnumber分页偏移量,首页传 0
countnumber本次请求的成员数量。
枚举值数值含义
GroupMessageReaderFilter.Read0查询已读成员。
GroupMessageReaderFilter.UnRead1查询未读成员。
import { GroupMessageReaderFilter } from '@openim/wasm-client-sdk';

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

Promise 成功后,data 是当前页 GroupMemberItem[],字段含义见分页查询群成员。按 groupID:userID 去重;查询建立快照,不触发回执事件。需要完整列表时继续分页。