feat: ignore messages that reply to bot's own messages

This commit is contained in:
tiennm99 committed 2026-04-20 13:26:21 +07:00
1 parent 3bfae8f182
commit 4651f11af7
1 file changed
+4
+4
View File
@@ -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(
"<b>Claude Status Bot</b>\n\n" +
"/help — Detailed command guide\n" +