コード例 #1
0
ファイル: Bot.cs プロジェクト: Flowiee/CriminalDanceBot
 internal static Message Edit(long chatId, int oldMessageId, string text, InlineKeyboardMarkup replyMarkup = null, ParseMode parseMode = ParseMode.Html, bool disableWebPagePreview = true, bool disableNotification = false)
 {
     try
     {
         return(BotMethods.Edit(chatId, oldMessageId, text, replyMarkup, parseMode, disableWebPagePreview, disableNotification));
     }
     catch (Exception ex)
     {
         ex.LogError();
         return(null);
     }
 }
コード例 #2
0
ファイル: Bot.cs プロジェクト: Flowiee/CriminalDanceBot
 internal static Message Send(long chatId, string text, IReplyMarkup replyMarkup = null, ParseMode parseMode = ParseMode.Html, bool disableWebPagePreview = true, bool disableNotification = false)
 {
     return(BotMethods.Send(chatId, text, replyMarkup, parseMode, disableWebPagePreview, disableNotification));
 }