Fixed upload on ModArchive modules

This commit is contained in:
Lucas Gabriel 2025-01-10 11:42:46 -03:00
parent fbdba4cb3f
commit ae8bea1001
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

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