Fixed upload on ModArchive modules
This commit is contained in:
parent
fbdba4cb3f
commit
ae8bea1001
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue