From 6587686cdcf0dbe18c6d1eecbf79e6d42acc48f7 Mon Sep 17 00:00:00 2001 From: Joep Beusenberg Date: Fri, 17 Jun 2022 17:40:33 +0400 Subject: [PATCH] Add Telegram --- CHANGELOG.md | 3 +++ CM.Text/BusinessMessaging/Model/Channel.cs | 9 +++++++++ CM.Text/TextClient.cs | 9 +++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0045772..ab8e519 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased +- Add Telegram + ## [2.4.1] - 2022-02-01 - Fix support for a custom end point URI in second SendMessage method diff --git a/CM.Text/BusinessMessaging/Model/Channel.cs b/CM.Text/BusinessMessaging/Model/Channel.cs index dc43447..a5d4b8e 100644 --- a/CM.Text/BusinessMessaging/Model/Channel.cs +++ b/CM.Text/BusinessMessaging/Model/Channel.cs @@ -128,5 +128,14 @@ public enum Channel /// [EnumMember(Value = "Instagram")] Instagram, + + /// + /// Messages will be sent over Telegram. + /// + /// + /// Note that CM needs to configure this for you to work. + /// + [EnumMember(Value = "Telegram Messenger")] + Telegram, } } diff --git a/CM.Text/TextClient.cs b/CM.Text/TextClient.cs index 254b657..6e6b9a2 100644 --- a/CM.Text/TextClient.cs +++ b/CM.Text/TextClient.cs @@ -21,13 +21,13 @@ public interface ITextClient /// /// The message text. /// - /// This is the sender name. The maximum length is 11 alphanumerical characters or 16 digits. Example: - /// 'MyCompany'.
+ /// This is the sender name. The maximum length is 11 alphanumerical characters or 16 digits. Example: 'MyCompany'.
/// For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
/// For MobilePush: use the app key of the account you want to use as sender.
/// For Facebook Messenger: use the Facebook Page ID of the account you want to use as sender.
/// For Google Business Messages: use the Google Business Messages agent ID of the account you want to use as sender (without dashes).
- /// For Instagram: use the Instagram Account ID of the account you want to use as sender. + /// For Instagram: use the Instagram Account ID of the account you want to use as sender.
+ /// For Telegram: use the Telegram Bot ID of the account you want to use as sender. /// /// /// These are the destination mobile numbers. Restrictions: this value should be in international format. @@ -35,7 +35,8 @@ public interface ITextClient /// For Twitter: use the Twitter Snowflake ID.
/// For Facebook Messenger: use the Facebook Page Scoped User ID (PSID).
/// For Google Business Messages: use the Google Business Messages conversation ID (without dashes).
- /// For Instagram: use the Instagram Scoped User ID (IGSID). + /// For Instagram: use the Instagram Scoped User ID (IGSID).
+ /// For Telegram: use the Telegram Chat ID. /// /// /// Here you can include your message reference. This information will be returned in a status