From 8a14af2330c159961b2d6523d410113baa38a68c Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 23 Oct 2023 11:48:19 +0200 Subject: [PATCH] WIP --- handlers/regex/runCustomCmd.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handlers/regex/runCustomCmd.js b/handlers/regex/runCustomCmd.js index c3313af..4f7d4e7 100644 --- a/handlers/regex/runCustomCmd.js +++ b/handlers/regex/runCustomCmd.js @@ -62,6 +62,11 @@ const runCustomCmdHandler = async (ctx, next) => { reply_to_message_id: getRepliedToId(ctx.message), }; + // Delete !trigger message + await ctx.deleteMessage() + + // How to rework this to allow editing it in the bot? + return ctx[typeToMethod(type)](content, options) .then(({ message_id }) => scheduleDeletion(