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

Cancel a scheduled message

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

// Cancel a scheduled message.
await groupChannel.cancelScheduledMessage(scheduledMessageId);