queryScheduledMessages

fun queryScheduledMessages(statuses: Set<ScheduledMessageQueryStatus> = emptySet(), limit: Int = ChatClient.DEFAULT_SCHEDULED_MESSAGES_LIMIT, next: String? = null): Call<QueryScheduledMessagesResult>

Queries the current user's scheduled messages in this channel: the pending ones first, then the failed ones, each sorted by ScheduledMessage.scheduledAt.

Return

Executable async Call responsible for querying the scheduled messages.

Parameters

statuses

The statuses of the scheduled messages, or empty for every status.

limit

The maximum number of scheduled messages to return, from 1 to 100. A value outside that range is moved into it.

next

The cursor of the page to return, from QueryScheduledMessagesResult.next, or null for the first page.