You can update a scheduled user message by passing ScheduledUserMessageUpdateParams as an argument to the updateScheduledUserMessage() method.
// Updates a scheduled user message.
final params = ScheduledUserMessageUpdateParams(message: 'UPDATE_MESSAGE');
try {
final scheduledUserMessage = await groupChannel.updateScheduledUserMessage(
params: params,
scheduledMessageid: scheduledMessage.scheduledInfo!.scheduledMessageId,
);
} catch (e) {
// Handle error.
}
You can also update a scheduled file message to send at a later time by passing ScheduledFileMessageUpdateParams as an argument to the updateScheduledFileMessage() method.