Added simple Markdown/HTML Generator

Use with:

"Bold Text".Bold();

"Other text".Italic();

"www.google.de".Link("Google")
This commit is contained in:
FlorianDahn 2019-08-28 17:33:18 +02:00
parent 6a2ac7a309
commit ae0fa3b0e3

View File

@ -18,7 +18,7 @@ namespace TelegramBotBase.Markdown
/// <param name="title"></param>
/// <param name="tooltip"></param>
/// <returns></returns>
public static String AsLink(this String url, String title = null, String tooltip = null)
public static String Link(this String url, String title = null, String tooltip = null)
{
switch (OutputMode)
{
@ -38,7 +38,7 @@ namespace TelegramBotBase.Markdown
/// <returns></returns>
public static String MentionUser(this long userId, String title = null)
{
return AsLink("tg://user?id=" + userId.ToString(), title);
return Link("tg://user?id=" + userId.ToString(), title);
}
/// <summary>