Use the cancelScheduledMessage()
method to cancel a message that a user has scheduled to send at a later time.
// Cancel a scheduled message. groupChannel.cancelScheduledMessage(scheduledMessageId: SCHEDULED_MESSAGE_ID) { message, error in guard error == nil else { return // Handle error. } }