@@ -45,8 +45,10 @@ export class MessageApiClient {
45
45
46
46
/**
47
47
* 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.
50
52
* @param message the body of the SMS message to be sent
51
53
* @param reference (optional) reference to the message to query it later in the CM.platform.
52
54
*/ public sendTextMessage ( to : string [ ] , from : string , message : string , reference : string = undefined ) {
@@ -78,8 +80,10 @@ export class Message extends CMTypes.MessageEnvelope {
78
80
79
81
/**
80
82
* 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.
83
87
* @param message the body of the SMS message to be sent
84
88
* @param reference (optional) reference to the message to query it later in the CM.platform.
85
89
*/
@@ -102,7 +106,7 @@ export class Message extends CMTypes.MessageEnvelope {
102
106
103
107
/**
104
108
* 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 "
106
110
*/
107
111
public setAllowedChannels ( channels : Channel [ ] ) : Message {
108
112
this . messages . msg [ 0 ] . allowedChannels = channels || [ ] ;
0 commit comments