The TG DL Api Workers provides download links to various types of files on Telegram, including images, videos, PDFs, APKs, and more. It’s deployable to Cloudflare Workers, and best of all, it’s free! Here are some key features:
- Easy to Use: The API is straightforward to use.
- Permanent Download Links: The links generated by this API remain valid over time.
Note: To use this API, your file size must be less than 20 MB. Wondering why? Read more about it here.
Check out the demo PDF download link: https://dl.techzbots.co/file/-1001833807432/3
How to Use on Your Own Channel:
- Add @TG_DL_Api_Workers_Bot to your channel as an admin with edit message rights.
- Obtain your Telegram channel ID or username.
- Upload a file to your Telegram channel and get its message ID.
- Construct the URL using the format: https://dl.techzbots.co/file/CHANNEL_ID/MESSAGE_ID and open it.
Note: The bot edits the file’s caption on the channel. Make sure this won’t cause any issues, or consider creating a new private channel for use with the bot.
Follow these steps to deploy the API:
- Create an account on Cloudflare and log in.
- Navigate to the
Workers & Pages
tab in the sidebar. - Click on the
Create Application
button. - Create a new worker by clicking on the
Create Worker
button. - Deploy the worker by clicking on the
Deploy
button. - Edit the code by clicking on the
Edit Code
button. - Copy the full code from the worker.js file.
- Paste the code into Cloudflare.
- Create a new bot using @BotFather.
- Add your bot token to the Cloudflare code at the top, inside the
const BOT_TOKENS = [];
section. - Finally, click on
Deploy
to activate your API.
Stay informed about the latest updates by joining our channels / groups :