Search Messages By Time Range Query
by Keyword and Time range search message Pagination query object.
Based on Keyword In specified Time range within Search messages, Supports offset Pagination.
Via BaseChannel.createSearchMessagesByTimeRangeQuery Create instance, Not cannot be constructed directly.
Usage Example:
val params = SearchMessagesByTimeRangeQueryParams(
keyword = "hello",
startTime = startTimestamp,
endTime = endTimestamp
)
val query = channel.createSearchMessagesByTimeRangeQuery(params)
query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle search results
}
}Content copied to clipboard