2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-22 18:08:51 +00:00
This commit is contained in:
Martin Rys 2023-10-23 11:48:19 +02:00
parent 32bc5a684b
commit 8a14af2330

View File

@ -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(