Skip to content

Commit

Permalink
Merge pull request #49 from joepb/feature/add-telegram
Browse files Browse the repository at this point in the history
Add Telegram
  • Loading branch information
EricSmekens authored Jun 17, 2022
2 parents c115034 + 6587686 commit 4c0584d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 9 additions & 0 deletions CM.Text/BusinessMessaging/Model/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,14 @@ public enum Channel
/// </remarks>
[EnumMember(Value = "Instagram")]
Instagram,

/// <summary>
/// Messages will be sent over Telegram.
/// </summary>
/// <remarks>
/// Note that CM needs to configure this for you to work.
/// </remarks>
[EnumMember(Value = "Telegram Messenger")]
Telegram,
}
}
9 changes: 5 additions & 4 deletions CM.Text/TextClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@ public interface ITextClient
/// </summary>
/// <param name="messageText">The message text.</param>
/// <param name="from">
/// This is the sender name. The maximum length is 11 alphanumerical characters or 16 digits. Example:
/// 'MyCompany'.<br/>
/// This is the sender name. The maximum length is 11 alphanumerical characters or 16 digits. Example: 'MyCompany'.<br/>
/// For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.<br/>
/// For MobilePush: use the app key of the account you want to use as sender.<br/>
/// For Facebook Messenger: use the Facebook Page ID of the account you want to use as sender.<br/>
/// For Google Business Messages: use the Google Business Messages agent ID of the account you want to use as sender (without dashes).<br/>
/// 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.<br/>
/// For Telegram: use the Telegram Bot ID of the account you want to use as sender.
/// </param>
/// <param name="to">
/// These are the destination mobile numbers. Restrictions: this value should be in international format.
/// Example: '00447911123456'.<br/>
/// For Twitter: use the Twitter Snowflake ID.<br/>
/// For Facebook Messenger: use the Facebook Page Scoped User ID (PSID).<br/>
/// For Google Business Messages: use the Google Business Messages conversation ID (without dashes).<br/>
/// For Instagram: use the Instagram Scoped User ID (IGSID).
/// For Instagram: use the Instagram Scoped User ID (IGSID).<br/>
/// For Telegram: use the Telegram Chat ID.
/// </param>
/// <param name="reference">
/// Here you can include your message reference. This information will be returned in a status
Expand Down

0 comments on commit 4c0584d

Please sign in to comment.