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