/ SDKs / Android
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
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.

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