fix last issue

This commit is contained in:
Leonid Pershin
2025-10-17 03:36:56 +03:00
parent 517a6001f0
commit f7e3024e7e

View File

@@ -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)
{