From ae8bea1001ef0a22b9565a6ffe9c1c6779204016 Mon Sep 17 00:00:00 2001 From: Luquinhas Date: Fri, 10 Jan 2025 11:42:46 -0300 Subject: [PATCH] Fixed upload on ModArchive modules --- src/commands/modarchive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/modarchive.js b/src/commands/modarchive.js index d092067..9e17582 100644 --- a/src/commands/modarchive.js +++ b/src/commands/modarchive.js @@ -57,9 +57,9 @@ module.exports = (bot) => { if (result) { const { filePath, fileName } = result; - await ctx.replyWithDocument({ - source: filePath, + await ctx.replyWithDocument({ source: filePath }, { caption: fileName, + reply_to_message_id: ctx.message.message_id }); fs.unlinkSync(filePath);