get Message Count By Time Range
public abstract void getMessageCountByTimeRange(String targetId, ConversationType conversationType, long startTime, long endTime, IRongCoreCallback.ResultCallback<Integer> callback)
Retrieves the number of messages within a specified time range for a given conversation. For ultra groups, it retrieves the message count for all channel IDs.
Since
5.6.4
Parameters
target Id
The conversation ID
conversation Type
The conversation type, supporting one-to-one chat, group chat, ultra group, and chatroom conversation types
start Time
The start time
end Time
The end time
callback
The callback result