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) {
|
if (result) {
|
||||||
const { filePath, fileName } = result;
|
const { filePath, fileName } = result;
|
||||||
|
|
||||||
await ctx.replyWithDocument({
|
await ctx.replyWithDocument({ source: filePath }, {
|
||||||
source: filePath,
|
|
||||||
caption: fileName,
|
caption: fileName,
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.unlinkSync(filePath);
|
fs.unlinkSync(filePath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue