/ SDKs / JavaScript
SDKs
Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4

Retrieve a scheduled message

Copy link

You can retrieve a specific scheduled message by passing ScheduledMessageRetrievalParams as an argument to the MessageModule.getScheduledMessage() method.

JavaScriptTypeScript
const params = {
  channelUrl: channel.url,
  scheduledMessageId: scheduledMessage.scheduledInfo.scheduledMessageId,
};
const scheduledMessage = await sb.message.getScheduledMessage(params);

ScheduledMessageRetrievalParams

Copy link
Parameter nameTypeDescription

channelUrl

string

Specifies the URL of the channel.

scheduledMessageId

long

Specifies the ID of the scheduled message.