From bcdb0fefee5951df58d39a40ec9723e0ab2d2324 Mon Sep 17 00:00:00 2001
From: Andriy <30056636+West14@users.noreply.github.com>
Date: Mon, 2 Jan 2023 23:42:07 +0200
Subject: [PATCH] [core] update dependencies
---
Core/Core.cs | 1 -
Core/Core.csproj | 12 ++++++------
.../Handler/Fun/AbstractAnimationReply.cs | 2 +-
modules/UserGroupTag/Handler.cs | 2 +-
4 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/Core/Core.cs b/Core/Core.cs
index b7b9a4d..81b714b 100644
--- a/Core/Core.cs
+++ b/Core/Core.cs
@@ -6,7 +6,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.Logging;
namespace Kruzya.TelegramBot.Core
{
diff --git a/Core/Core.csproj b/Core/Core.csproj
index 5c6bde4..08a657a 100644
--- a/Core/Core.csproj
+++ b/Core/Core.csproj
@@ -8,15 +8,15 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
+
+
+
+
diff --git a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs
index ad3f5f3..fe48b90 100644
--- a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs
+++ b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs
@@ -67,7 +67,7 @@ namespace West.Entertainment.Handler.Fun
Message!.Text, Message!.Text!.ToLower());
_logger.LogDebug("AnimationFileId: {FileId}", animationFileId);
- if (animationFileId.IsNullOrEmpty())
+ if (string.IsNullOrEmpty(animationFileId))
{
_logger.LogDebug("AnimationFileId is empty. Ignoring.");
return false;
diff --git a/modules/UserGroupTag/Handler.cs b/modules/UserGroupTag/Handler.cs
index 889cf9f..97e1e3b 100644
--- a/modules/UserGroupTag/Handler.cs
+++ b/modules/UserGroupTag/Handler.cs
@@ -33,7 +33,7 @@ namespace UserGroupTag
{
// var groupName = group.Text;
var repliedMessage = RawUpdate.Message!.ReplyToMessage;
- if (repliedMessage == null || repliedMessage.From!.IsBot || !(await Bot.CanPunishMember(Chat, From)) || groupName.IsNullOrEmpty())
+ if (repliedMessage == null || repliedMessage.From!.IsBot || !(await Bot.CanPunishMember(Chat, From)) || string.IsNullOrEmpty(groupName))
{
return;
}