2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 21:55:17 +00:00

Don't delete source message in groupLinker

This commit is contained in:
Muthu Kumar
2020-03-21 00:36:23 +05:30
committed by GitHub
parent b8b2fb3a46
commit dab3e4e99f

View File

@@ -14,8 +14,6 @@ const regex = XRegExp.tag('ix')`^
\s*\?* \s*\?*
$`; $`;
const noop = Function.prototype;
/** @param { import('../../typings/context').ExtendedContext } ctx */ /** @param { import('../../typings/context').ExtendedContext } ctx */
const handler = async (ctx, next) => { const handler = async (ctx, next) => {
let [ , groupName ] = ctx.match; let [ , groupName ] = ctx.match;
@@ -33,7 +31,6 @@ const handler = async (ctx, next) => {
if (!link) return next(); if (!link) return next();
ctx.deleteMessage().then(noop);
return ctx.reply(link, { reply_to_message_id: replyId(ctx.message) }); return ctx.reply(link, { reply_to_message_id: replyId(ctx.message) });
}; };