Skip to content

Commit d5f01ea

Browse files
authored
Update MessageApiClient to support Telegram. (#41)
Added channel `Telegram Messenger` as per the other text-sdk's
1 parent ed39c38 commit d5f01ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MessageApiClient.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as CMTypes from "../typescript-node-client/api";
22
import http = require('http');
33

4-
export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" | "Twitter" | "MobilePush" | "Facebook Messenger" | "Google Business Messages" | "Instagram";
4+
export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" | "Telegram Messenger" | "Twitter" | "MobilePush" | "Facebook Messenger" | "Google Business Messages" | "Instagram";
55
export type RichMessage = CMTypes.RichMessage;
66
export type Suggestion = CMTypes.Suggestion;
77
export type Template = CMTypes.Template;
@@ -107,7 +107,7 @@ export class Message extends CMTypes.MessageEnvelope {
107107
/**
108108
* Sets the allowed channels to use. Default is to allow any channel configured for your account
109109
* @param channels array of allowed channels.
110-
* Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter"
110+
* Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp", "Telegram Messenger" and "Twitter"
111111
*/
112112
public setAllowedChannels(channels: Channel[]): Message {
113113
this.messages.msg[0].allowedChannels = channels || [];

0 commit comments

Comments
 (0)