feat: ignore pinned message service events in fallback handler (#2)

This commit is contained in:
tiennm99 authored and GitHub committed 2026-04-21 14:37:54 +07:00
1 parent 4651f11af7
commit 59ae67c889
1 file changed
+1
+1
View File
@@ -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;