diff --git a/src/TL.Extensions.cs b/src/TL.Extensions.cs
index 625ff23..ff75277 100644
--- a/src/TL.Extensions.cs
+++ b/src/TL.Extensions.cs
@@ -40,7 +40,7 @@ namespace TL
public static class Markdown
{
- /// Converts a Markdown text into the (Entities + plain text) format used by Telegram messages
+ /// Converts a Markdown text into the (plain text + entities) format used by Telegram messages
/// Client, used for getting access_hash for tg://user?id= URLs
/// [in] The Markdown text
[out] The same (plain) text, stripped of all Markdown notation
/// The array of formatting entities that you can pass (along with the plain text) to SendMessageAsync or SendMediaAsync
@@ -135,6 +135,11 @@ namespace TL
return entities.Count == 0 ? null : entities.ToArray();
}
+ /// Converts the (plain text + entities) format used by Telegram messages into a Markdown text
+ /// Client, used only for getting current user ID in case of InputMessageEntityMentionName+InputUserSelf
+ /// The plain text, typically obtained from
+ /// The array of formatting entities, typically obtained from
+ /// The message text with MarkdownV2 formattings
public static string EntitiesToMarkdown(this WTelegram.Client client, string message, MessageEntity[] entities)
{
if (entities == null || entities.Length == 0) return Escape(message);
@@ -223,7 +228,7 @@ namespace TL
public static class HtmlText
{
- /// Converts an HTML-formatted text into the (Entities + plain text) format used by Telegram messages
+ /// Converts an HTML-formatted text into the (plain text + entities) format used by Telegram messages
/// Client, used for getting access_hash for tg://user?id= URLs
/// [in] The HTML-formatted text
[out] The same (plain) text, stripped of all HTML tags
/// The array of formatting entities that you can pass (along with the plain text) to SendMessageAsync or SendMediaAsync
@@ -309,6 +314,11 @@ namespace TL
return entities.Count == 0 ? null : entities.ToArray();
}
+ /// Converts the (plain text + entities) format used by Telegram messages into an HTML-formatted text
+ /// Client, used only for getting current user ID in case of InputMessageEntityMentionName+InputUserSelf
+ /// The plain text, typically obtained from
+ /// The array of formatting entities, typically obtained from
+ /// The message text with HTML formatting tags
public static string EntitiesToHtml(this WTelegram.Client client, string message, MessageEntity[] entities)
{
if (entities == null || entities.Length == 0) return Escape(message);