Chat / Flutter
Current version: v3
Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
Message

Update a scheduled message

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,
    );