From dab3e4e99f0390a5e82c55e5d05e4604e8ef0ee3 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sat, 21 Mar 2020 00:36:23 +0530 Subject: [PATCH] Don't delete source message in groupLinker --- handlers/regex/groupLinker.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/handlers/regex/groupLinker.js b/handlers/regex/groupLinker.js index e143248..95577b3 100644 --- a/handlers/regex/groupLinker.js +++ b/handlers/regex/groupLinker.js @@ -14,8 +14,6 @@ const regex = XRegExp.tag('ix')`^ \s*\?* $`; -const noop = Function.prototype; - /** @param { import('../../typings/context').ExtendedContext } ctx */ const handler = async (ctx, next) => { let [ , groupName ] = ctx.match; @@ -33,7 +31,6 @@ const handler = async (ctx, next) => { if (!link) return next(); - ctx.deleteMessage().then(noop); return ctx.reply(link, { reply_to_message_id: replyId(ctx.message) }); };