Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
/
Message
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.

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