mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Fixed upload on ModArchive modules
This commit is contained in:
parent
fbdba4cb3f
commit
ae8bea1001
@ -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…
x
Reference in New Issue
Block a user