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:
parent
b8b2fb3a46
commit
dab3e4e99f
@ -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) });
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user