getMessageCountByTimeRange

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

targetId

The conversation ID

conversationType

The conversation type, supporting one-to-one chat, group chat, ultra group, and chatroom conversation types

startTime

The start time

endTime

The end time

callback

The callback result