get Messages By Timestamp
suspend fun BaseChannel.getMessagesByTimestamp(ts: Long, params: MessageListParams): List<BaseMessage>
Get messages by timestamp
Return
The message list
Since
4.15.0
Parameters
ts
The timestamp to get messages
params
The parameters to get messages
fun BaseChannel.getMessagesByTimestamp(ts: Long, params: MessageListParams, handler: ResultHandler<List<BaseMessage>>?)
Retrieves previous or next messages based on the timestamp in a specific channel. The result is passed to handler
as list
.
Since
4.15.0
Parameters
ts
Specifies the timestamp to be the reference point for messages to retrieve, in Unix milliseconds format.
params
Params for getting message list. See MessageListParams
handler
Callback handler.