From 59ae67c88906dfcb2d905e0ece753fd81dd1eb82 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Minh Date: Tue, 21 Apr 2026 14:37:54 +0700 Subject: [PATCH] feat: ignore pinned message service events in fallback handler (#2) --- src/bot-commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bot-commands.js b/src/bot-commands.js index a3872c9..728086a 100644 --- a/src/bot-commands.js +++ b/src/bot-commands.js @@ -157,6 +157,7 @@ function createBot(token) { registerInfoCommands(bot); bot.on("message", async (ctx) => { + if (ctx.message?.pinned_message) return; const replyTo = ctx.message?.reply_to_message; if (replyTo && replyTo.from?.id === ctx.me.id) { return;