wrong .NET version
This commit is contained in:
parent
4dcd67f71b
commit
594b8be769
@ -43,7 +43,7 @@ namespace RSSBot {
|
|||||||
{
|
{
|
||||||
string url = args[1].Value;
|
string url = args[1].Value;
|
||||||
long chatId = message.Chat.Id;
|
long chatId = message.Chat.Id;
|
||||||
RssBotFeed feed = new(url);
|
RssBotFeed feed = new RssBotFeed(url);
|
||||||
|
|
||||||
await Bot.BotClient.SendChatActionAsync(message.Chat, ChatAction.Typing);
|
await Bot.BotClient.SendChatActionAsync(message.Chat, ChatAction.Typing);
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ namespace RSSBot {
|
|||||||
|
|
||||||
List<RssBotFeed> feeds = Bot.RssBotFeeds.Where(x => x.Subs.Contains(chatId)).ToList();
|
List<RssBotFeed> feeds = Bot.RssBotFeeds.Where(x => x.Subs.Contains(chatId)).ToList();
|
||||||
|
|
||||||
StringBuilder text = new();
|
StringBuilder text = new StringBuilder();
|
||||||
if (feeds.Count < 1) {
|
if (feeds.Count < 1) {
|
||||||
text.Append("❌ Keine Feeds abonniert.");
|
text.Append("❌ Keine Feeds abonniert.");
|
||||||
} else {
|
} else {
|
||||||
|
2
Utils.cs
2
Utils.cs
@ -7,7 +7,7 @@ using Telegram.Bot.Types.Enums;
|
|||||||
|
|
||||||
namespace RSSBot {
|
namespace RSSBot {
|
||||||
public static class Utils {
|
public static class Utils {
|
||||||
private static readonly Regex RegexHtml = new("<.*?>");
|
private static readonly Regex RegexHtml = new Regex("<.*?>");
|
||||||
|
|
||||||
public static string StripHtml(string input)
|
public static string StripHtml(string input)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user