Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
Message
This is the new Docs for Chat SDK v4 for Android. 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.

val params = ScheduledMessageRetrievalParams(
    channelUrl = CHANNEL_URL,
    scheduledMessageId = scheduledMessageId
)

// Retrieves a scheduled message.
BaseMessage.getScheduledMessage(params) { scheduledMessage, e ->
    if (e != null) {
        // Handle error.
    }

    // The scheduled message has been successfully retrieved.
}

ScheduledMessageRetrievalParams

Parameter nameTypeDescription

channelUrl

string

Specifies the URL of the channel.

scheduledMessageId

long

Specifies the ID of the scheduled message.