/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Update a scheduled message

Copy link

You can update a scheduled user message by passing ScheduledUserMessageUpdateParams as an argument to the updateScheduledUserMessage() method.

// Updates a scheduled user message.
final uParams =
   ScheduledUserMessageUpdateParams(message: 'update message');

final updateScheduledMessage = await channel.updateScheduledUserMessage(
    params: uParams,
    scheduledMessageid: scheduledMessage.messageId,
    );

You can also update a scheduled file message to send at a later time by passing ScheduledFileMessageUpdateParams as an argument to the updateScheduledFileMessage() method.

// Updates a scheduled file message.
final uParams =
    ScheduledFileMessageUpdateParams(fileName: 'update file name');

final updateScheduledMessage = await channel.updateScheduledFileMessage(
    params: uParams,
    scheduledMessageid: scheduledMessage.messageId,
    );