diff --git a/modules/ChatManagement/Handler/Fun/Bayan.cs b/modules/ChatManagement/Handler/Fun/Bayan.cs index 1fb35b2..18ed732 100644 --- a/modules/ChatManagement/Handler/Fun/Bayan.cs +++ b/modules/ChatManagement/Handler/Fun/Bayan.cs @@ -23,12 +23,12 @@ namespace West.TelegramBot.ChatManagement.Handler.Fun await HandleSetAnimation(); } - [Message(InChat.Public, "(?i)баян|боян", regex: true)] + [Message(InChat.Public, "(?i)баян|боян", MessageFlag.HasText | MessageFlag.IsReply, true)] public async Task HandleBayan() { var msg = Message; - var replyMsg = msg?.ReplyToMessage; - if (msg == null || replyMsg == null || replyMsg.From!.IsBot || !await HandleAnimation(replyMsg.MessageId)) + var replyMsg = msg?.ReplyToMessage!; + if (msg == null || !await HandleAnimation(replyMsg.MessageId)) { return; }