diff --git a/Commands.cs b/Commands.cs index 24691f0..4984d25 100644 --- a/Commands.cs +++ b/Commands.cs @@ -43,7 +43,7 @@ namespace RSSBot { { string url = args[1].Value; long chatId = message.Chat.Id; - RssBotFeed feed = new(url); + RssBotFeed feed = new RssBotFeed(url); await Bot.BotClient.SendChatActionAsync(message.Chat, ChatAction.Typing); @@ -196,7 +196,7 @@ namespace RSSBot { List feeds = Bot.RssBotFeeds.Where(x => x.Subs.Contains(chatId)).ToList(); - StringBuilder text = new(); + StringBuilder text = new StringBuilder(); if (feeds.Count < 1) { text.Append("❌ Keine Feeds abonniert."); } else { diff --git a/Utils.cs b/Utils.cs index be1eb6b..06c6a77 100644 --- a/Utils.cs +++ b/Utils.cs @@ -7,7 +7,7 @@ using Telegram.Bot.Types.Enums; namespace RSSBot { public static class Utils { - private static readonly Regex RegexHtml = new("<.*?>"); + private static readonly Regex RegexHtml = new Regex("<.*?>"); public static string StripHtml(string input) {