queryScheduledMessages
Queries the current user's scheduled messages: the pending ones first, then the failed ones, each sorted by ScheduledMessage.scheduledAt. By default, a user has at most 100 pending scheduled messages, so the first page of the default size holds all of them. The failed ones are kept for 7 days.
The results are saved in scheduledMessages. When the query has no status filter and returns a single page, the scheduled messages of the queried channel, or of every channel, that are not in the results are removed from scheduledMessages, for example the ones sent while the device was offline. The ones not on the server yet, or scheduled while the query ran, are kept. Such a query of every channel also sets hasLoadedAllScheduledMessages.
Return
Executable async Call responsible for querying the scheduled messages.
Parameters
The channel of the scheduled messages in the format type:id, or null for every channel.
The statuses of the scheduled messages, or empty for every status.
The maximum number of scheduled messages to return, from 1 to 100. A value outside that range is moved into it.
The cursor of the page to return, from QueryScheduledMessagesResult.next, or null for the first page.