/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
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.
let params = ScheduledMessageRetrievalParams(
    channelURL: CHANNEL_URL,
    scheduledMessageId: SCHEDULED_MESSAGE_ID
)
BaseMessage.getScheduledMessage(params: params) { message, error in
    guard error == nil else {
        return // Handle error.
    }
}