rescheduleMessage

Changes the date when a scheduled message is sent. The change is saved locally first, and sent to the server like a new scheduled message (see scheduleMessage).

It is refused before it is saved when the message quotes a message that was deleted, or when scheduledAt is further ahead than Config.scheduledMessagesMaxLeadTimeSeconds, as known from the channel config and messages saved on this device. A message the server failed to send (ScheduledMessageFailure.ServerFailedPublishing) can't be rescheduled: the server rejects it, so delete it and schedule a new message instead.

Return

Executable async Call responsible for rescheduling the message, with the scheduled message as saved locally.

Parameters

id

The ID of the scheduled message.

scheduledAt

The new date when the message is sent. The server rounds it up to the next minute.