Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/MessageApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ export class MessageApiClient {
* For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
* @param message the body of the SMS message to be sent
* @param reference (optional) reference to the message to query it later in the CM.platform.
*/public sendTextMessage(to: string[], from: string, message: string, reference: string = undefined) {
*/
public sendTextMessage(to: string[], from: string, message: string, reference: string = undefined) {
return this
.createMessage()
.setMessage(to, from, message, reference)
.setAllowedChannels(['SMS'])
.send();
}
}
Expand Down