/ 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

Retrieve a scheduled message

Copy link

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

Copy link
Parameter nameTypeDescription

channelUrl

String

Specifies the URL of the channel.

scheduledMessageId

int

Specifies the ID of the scheduled message.