Open kyzsuukii opened 1 year ago
There are four method to download file which are
bot.getFileLink and bot.getFile would give downloaded able link and file object then you have to use axios or https to download and save with custom name
bot.downloadFile won't allow you to download file with custom name where as you can only pass downloadDir so if you want to use you have change name after download using fs.renameSync
bot.getFileStream would give you direct file stream in which you could directly save file with custom name.
How can I set the output filename when using
similar to
??