11import * as CMTypes from "../typescript-node-client/api" ;
22import http = require( 'http' ) ;
33
4- export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" ;
4+ export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" | "Twitter" ;
55export type RichMessage = CMTypes . RichMessage ;
66export type Suggestion = CMTypes . Suggestion ;
77export type Template = CMTypes . Template ;
@@ -45,8 +45,10 @@ export class MessageApiClient {
4545
4646 /**
4747 * Send an SMS message
48- * @param to array of recipients for the message, specify the numbers in international format with leading 00
49- * @param from the sender of the message, specify valid Sender ID
48+ * @param to array of recipients for the message, specify the numbers in international format with leading 00
49+ * For Twitter: use the Twitter Snowflake ID
50+ * @param from the sender of the message, specify valid Sender ID.
51+ * For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
5052 * @param message the body of the SMS message to be sent
5153 * @param reference (optional) reference to the message to query it later in the CM.platform.
5254 */ public sendTextMessage ( to : string [ ] , from : string , message : string , reference : string = undefined ) {
@@ -78,8 +80,10 @@ export class Message extends CMTypes.MessageEnvelope {
7880
7981 /**
8082 * Sets the essential message parameters.
81- * @param to array of recipients for the message, specify the numbers in international format with leading 00
82- * @param from the sender of the message, specify valid Sender ID
83+ * @param to array of recipients for the message, specify the numbers in international format with leading 00.
84+ * For Twitter: use the Twitter Snowflake ID
85+ * @param from the sender of the message, specify valid Sender ID.
86+ * For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
8387 * @param message the body of the SMS message to be sent
8488 * @param reference (optional) reference to the message to query it later in the CM.platform.
8589 */
@@ -102,7 +106,7 @@ export class Message extends CMTypes.MessageEnvelope {
102106
103107 /**
104108 * Sets the allowed channels to use. Default is to allow any channel configured for your account
105- * @param channels array of allowed channels. Any of "SMS", "Viber", "RCS", "Apple Business Chat" and "WhatsApp "
109+ * @param channels array of allowed channels. Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter "
106110 */
107111 public setAllowedChannels ( channels : Channel [ ] ) : Message {
108112 this . messages . msg [ 0 ] . allowedChannels = channels || [ ] ;
0 commit comments