temp disable prefix requirement for AI reply

This commit is contained in:
2026-04-29 19:19:50 +03:00
parent d41a4ed3ea
commit 874f312465
+3 -1
View File
@@ -1424,7 +1424,9 @@ export async function processNewMessage(msg: Message): Promise<void> {
const textToCheck = startsWithPrefix ? messageWithoutPrefix : cmdText;
if (Environment.PROCESS_LINKS && await processYouTubeLink(msg, getFirstLink(msg))) return;
if (!startsWithPrefix && msg.chat.type !== "private") return;
if (msg.chat.type !== "private" && (!msg.reply_to_message || msg.reply_to_message.from.id !== botUser.id)) return;
if (msg.chat.type === "private" && !Environment.ADMIN_IDS.has(msg.chat.id)) return;
switch (Environment.DEFAULT_AI_PROVIDER) {