From ae0fa3b0e3e5dce6487595b35bc5518ed4161163 Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Wed, 28 Aug 2019 17:33:18 +0200 Subject: [PATCH] Added simple Markdown/HTML Generator Use with: "Bold Text".Bold(); "Other text".Italic(); "www.google.de".Link("Google") --- TelegramBotBase/Markdown/Generator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TelegramBotBase/Markdown/Generator.cs b/TelegramBotBase/Markdown/Generator.cs index a6f4ecd..90c061f 100644 --- a/TelegramBotBase/Markdown/Generator.cs +++ b/TelegramBotBase/Markdown/Generator.cs @@ -18,7 +18,7 @@ namespace TelegramBotBase.Markdown /// /// /// - 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 /// 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); } ///