/ SDKs / Android
SDKs
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Android
Version 4

Cancel a scheduled message

Copy link

Use the cancelScheduledMessage() method to cancel a message that a user has scheduled to send at a later time.

KotlinKTX
// Cancels a scheduled message.
groupChannel.cancelScheduledMessage(scheduledMessageId) { e ->
    if (e != null) {
        // Handle error.
    }
    // A scheduled message has been successfully canceled.
}