From 4651f11af702532c54a060a232e6f620a6c447f4 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 20 Apr 2026 13:26:21 +0700 Subject: [PATCH] feat: ignore messages that reply to bot's own messages --- src/bot-commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bot-commands.js b/src/bot-commands.js index 6cd8d0b..a3872c9 100644 --- a/src/bot-commands.js +++ b/src/bot-commands.js @@ -157,6 +157,10 @@ function createBot(token) { registerInfoCommands(bot); bot.on("message", async (ctx) => { + const replyTo = ctx.message?.reply_to_message; + if (replyTo && replyTo.from?.id === ctx.me.id) { + return; + } await ctx.reply( "Claude Status Bot\n\n" + "/help — Detailed command guide\n" +