diff --git a/func/handler.js b/func/handler.js index a06d049..595445a 100644 --- a/func/handler.js +++ b/func/handler.js @@ -96,14 +96,12 @@ const handleStatus = async (ctx, downloadId) => { `Progress: ${completedSize} MB / ${totalSize} MB`; if (downloadData.result.status === "active") { - reply += `\nCancel with /cancel_${downloadId}`; - } else if (downloadData.result.status === "complete") { - const files = downloadData.result.files - .map((file) => file.path) - .join("\n"); - reply += `\nDownloaded Files:\n${files}`; + reply += `\nCancel with /cancel_${downloadId}\n\n`; } + const files = downloadData.result.files.map((file) => file.path).join("\n"); + reply += `\nDownloaded Files:\n${files}`; + ctx.reply(reply); } catch (error) { console.error(error);