get Messages By Message Id
fun BaseChannel.getMessagesByMessageId(messageId: Long, params: MessageListParams, handler: ResultHandler<List<BaseMessage>>?)
Retrieves previous or next messages based on the message ID in a specific channel. The result is passed to handler
as list
.
Since
4.15.0
Parameters
message Id
Specifies the message ID to be the reference point for messages to retrieve.
params
Params for getting message list. See MessageListParams
handler
Callback handler.
suspend fun BaseChannel.getMessagesByMessageId(messageId: Long, params: MessageListParams): List<BaseMessage>
Deprecated
As of 4.17.0, replaced with awaitGetMessagesByMessageId(messageId, params).
Replace with
awaitGetMessagesByMessageId(messageId, params)
Content copied to clipboard
Get messages by message id
Return
The message list
Since
4.15.0
Parameters
message Id
The message id to get messages
params
The parameters to get messages