From 594b8be769be2fe6a93d6d78704e15d92d1868e2 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 20 Dec 2020 23:46:21 +0100 Subject: [PATCH] wrong .NET version --- Commands.cs | 4 ++-- Utils.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {