getMessagesByTimestamp

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.


suspend fun BaseChannel.getMessagesByTimestamp(ts: Long, params: MessageListParams): List<BaseMessage>

Deprecated

As of 4.17.0, replaced with awaitGetMessagesByTimestamp(ts, params).

Replace with

awaitGetMessagesByTimestamp(ts, params)

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