From c003d443e36d861a015d66a55885f91f6168b4f3 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Wed, 29 Apr 2026 19:24:31 +0300 Subject: [PATCH] temp disable prefix requirement for AI reply --- src/util/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/utils.ts b/src/util/utils.ts index 9089936..d479ee0 100644 --- a/src/util/utils.ts +++ b/src/util/utils.ts @@ -1425,7 +1425,7 @@ export async function processNewMessage(msg: Message): Promise { if (Environment.PROCESS_LINKS && await processYouTubeLink(msg, getFirstLink(msg))) return; - if (msg.chat.type !== "private" && (!msg.reply_to_message || msg.reply_to_message.from.id !== botUser.id)) return; + if (msg.chat.type !== "private" && (!msg.reply_to_message || msg.reply_to_message.from.id !== botUser.id) && !startsWithPrefix) return; if (msg.chat.type === "private" && !Environment.ADMIN_IDS.has(msg.chat.id)) return;