From 2c7fda9cf148b78056131395e57c1e4799cc606a Mon Sep 17 00:00:00 2001 From: Conor Shirren <32966008+ConorShirren@users.noreply.github.com> Date: Mon, 21 Nov 2022 20:47:06 +0000 Subject: [PATCH] Update MessageApiClient to support Telegram. Added channel `Telegram Messenger` as per the other text-sdk's --- lib/MessageApiClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MessageApiClient.ts b/lib/MessageApiClient.ts index ff70961..a626dfe 100644 --- a/lib/MessageApiClient.ts +++ b/lib/MessageApiClient.ts @@ -1,7 +1,7 @@ import * as CMTypes from "../typescript-node-client/api"; import http = require('http'); -export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" | "Twitter" | "MobilePush" | "Facebook Messenger" | "Google Business Messages" | "Instagram"; +export type Channel = "SMS" | "Viber" | "RCS" | "Apple Business Chat" | "WhatsApp" | "Telegram Messenger" | "Twitter" | "MobilePush" | "Facebook Messenger" | "Google Business Messages" | "Instagram"; export type RichMessage = CMTypes.RichMessage; export type Suggestion = CMTypes.Suggestion; export type Template = CMTypes.Template; @@ -107,7 +107,7 @@ export class Message extends CMTypes.MessageEnvelope { /** * Sets the allowed channels to use. Default is to allow any channel configured for your account * @param channels array of allowed channels. - * Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter" + * Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp", "Telegram Messenger" and "Twitter" */ public setAllowedChannels(channels: Channel[]): Message { this.messages.msg[0].allowedChannels = channels || [];