yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.17k stars 1.5k forks source link

Downloaded files from TelegramBot.downloadFile() are empty #1092

Open ghost opened 1 year ago

ghost commented 1 year ago

The files which are sent to the bot, are empty when downloaded using the downloadFile() function, but when I manually click on the URL, it downloads the file with the content. I have tried downloading the file with requests but the problem still persists. I get a working link of the file, but downloading fails when i try to do it from the code.