You can create a scheduled user message to send at a later time by passing ScheduledUserMessageCreateParams as an argument to the createScheduledUserMessage() method.
// Create a scheduled user message.
let params = ScheduledUserMessageCreateParams(
scheduledAt: SCHEDULED_AT_MILLISECONDS,
message: MESSAGE_TEXT
)
groupChannel.createScheduledUserMessage(params: params) { message, error in
guard error == nil else {
return // Handle error.
}
}
You can create a scheduled file message to send at a later time by passing ScheduledFileMessageCreateParams as an argument to the createScheduledFileMessage() method.