I am experiencing difficulties downloading files from channels where the bot is not present. Specifically, I am utilizing url_private
along with the required authentication token and files:read
scope. Although I am able to retrieve file information successfully, I encounter an issue where the file does not download when using the fetch function in Node.js. Interestingly, when I paste the same URL directly into a browser, the file downloads without any problems.
The file downloads successfully using url_private when the bot is present in the channel, whether I use the fetch function or paste the link directly into a browser. However, when attempting to download files from channels where the bot is not added, the file downloads via the browser but not using the fetch function in Node.js.
Rishab Kr. Chaurasiya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.