get

abstract suspend fun get(start: Long? = null, end: Long? = null, limit: Int = 100, orderBy: OrderBy = NewestFirst): PaginatedResult<Message>

Get messages that have been previously sent to the chat room, based on the provided options.

Return

Paginated result of messages. This paginated result can be used to fetch more messages if available.

Parameters

start

The start of the time window to query from. See QueryOptions.start

end

The end of the time window to query from. See QueryOptions.end

limit

The maximum number of messages to return in the response. See QueryOptions.limit

orderBy

The order of messages in the query result. See QueryOptions.orderBy