Telegram.Bot.Extensions.Markup 1.0.2

dotnet add package Telegram.Bot.Extensions.Markup --version 1.0.2
NuGet\Install-Package Telegram.Bot.Extensions.Markup -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Telegram.Bot.Extensions.Markup" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Telegram.Bot.Extensions.Markup --version 1.0.2
#r "nuget: Telegram.Bot.Extensions.Markup, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Telegram.Bot.Extensions.Markup as a Cake Addin
#addin nuget:?package=Telegram.Bot.Extensions.Markup&version=1.0.2

// Install Telegram.Bot.Extensions.Markup as a Cake Tool
#tool nuget:?package=Telegram.Bot.Extensions.Markup&version=1.0.2

Telegram Bot Markup Extensions

package downloads contributors license telegram chat

Introduction

This library provides some convenience methods to work with Telegram Bot API markup.

Under Telegram.Bot.Extensions.Markup namespace following static methods are available:

  • Tools.EscapeMarkdown - helper method to escape telegram markup symbols.
  • Tools.MentionHtml - helper method to create a user mention as HTML tag.
  • Tools.MentionMarkdown - helper method to create a user mention in Markdown syntax.
  • Tools.CreateDeepLinkedUrl - helper method to create a deep-linked URL.

Under Telegram.Bot.Extensions.Markup.Helpers namespace following static methods are available:

  • MessageEntityHelpers.ParseEntities - maps Message.Entities to Message.Text.
  • MessageEntityHelpers.ParseCaptionEntities - maps Message.CaptionEntities to Message.Caption.

Under Telegram.Bot.Extensions.Markup namespace following Message extension methods are available:

  • TextHtml - creates an HTML-formatted string from the markup entities found in the message.
  • TextHtmlUrled - creates an HTML-formatted string from the markup entities found in the message.
  • CaptionHtml - creates an HTML-formatted string from the markup entities found in the message's caption.
  • CaptionHtmlUrled - creates an HTML-formatted string from the markup entities found in the message's caption.
  • TextMarkdown - creates a Markdown-formatted string from the markup entities found in the message using ParseMode.Markdown.
  • TextMarkdownV2 - creates a Markdown-formatted string from the markup entities found in the message using ParseMode.MarkdownV2.
  • TextMarkdownUrled - creates a Markdown-formatted string from the markup entities found in the message using ParseMode.Markdown.
  • TextMarkdownV2Urled - creates a Markdown-formatted string from the markup entities found in the message using ParseMode.MarkdownV2.
  • CaptionMarkdown - creates an Creates a Markdown-formatted string from the markup entities found in the message's caption using ParseMode.Markdown.
  • CaptionMarkdownV2 - creates an Creates a Markdown-formatted string from the markup entities found in the message's caption using ParseMode.MarkdownV2.
  • CaptionMarkdownUrled - creates a Markdown-formatted string from the markup entities found in the message's caption using ParseMode.Markdown.
  • CaptionMarkdownV2Urled - creates a Markdown-formatted string from the markup entities found in the message's caption using ParseMode.MarkdownV2.

Installation

Add package to your project with command:

dotnet add package Telegram.Bot.Extensions.Markup

Credits

This library is a .NET implementation of python-telegram-bot.

Library use Telegram.Bot for Telegram Bot API specific implementations.

License

You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 1,509 8/10/2023
1.0.1 1,430 4/2/2023
1.0.0 160 4/2/2023