2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 13:17:56 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) });
};