Chat / Flutter
Chat Flutter v3
Chat Flutter
Chat
Flutter
Version 3
Home
/
Chat
/
Flutter
/
Message

Retrieve a scheduled message

You can retrieve a specific scheduled message by passing ScheduledMessageRetrievalParams as an argument to the getScheduledMessage() method.

// Retrieves a scheduled message.
final params = ScheduledMessageRetrievalParams(
    channelUrl: channel.channelUrl,
    scheduledMessageId: scheduledMessage.scheduledMessageId,
    );

final viewScheduledMessage =
    await BaseMessage.getScheduledMessage(params);
    // You can handle actions relevant to the scheduled message.

ScheduledMessageRetrievalParams

Parameter nameTypeDescription

channelUrl

String

Specifies the URL of the channel.

scheduledMessageId

int

Specifies the ID of the scheduled message.