/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

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

try {
  final scheduledMessage = await BaseMessage.getScheduledMessage(params);
  // You can handle actions relevant to the scheduled message.
} catch (e) {
  // Handle error.
}

ScheduledMessageRetrievalParams

Copy link
Parameter nameTypeDescription

channelUrl

String

Specifies the URL of the channel.

scheduledMessageId

int

Specifies the ID of the scheduled message.