fix last issue
This commit is contained in:
@@ -71,7 +71,7 @@ namespace ChatBot.Services.Telegram.Commands
|
||||
if (botInfo != null)
|
||||
{
|
||||
bool hasBotMention = messageText.Contains($"@{botInfo.Username}");
|
||||
bool hasOtherMentions = messageText.Contains("@") && !hasBotMention;
|
||||
bool hasOtherMentions = messageText.Contains('@') && !hasBotMention;
|
||||
|
||||
if (!hasBotMention && hasOtherMentions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user