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.
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.
Certainly! Let's improve the "Note" section. Here are the revised instructions:
- The bot edits the file’s caption on the channel. Ensure that this won’t cause any issues, or consider creating a new private channel for use with the bot.
- Use a Telegram channel, not a group.
- Your file must not contain a forward tag, and it must not be forwarded with a forward tag.
- The bot must have edit rights inside the channel.
- To use this API, your file size must be less than 20 MB. Wondering why? Read more about it here.
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.
Certainly! Let's improve the FAQs section of your project. Here are some suggestions:
-
Does this API support groups?
- No, this API does not support groups. You must use a Telegram channel instead.
-
Do I have to give the bot all admin rights?
- No, you only need to grant the bot the "edit message" right. Full admin rights are not necessary.
-
How do I get the CHANNEL_ID of my channel?
- Follow these steps:
- Forward any message from your channel to @MissRose_bot.
- Reply with the command
/id
to the forwarded message. - @MissRose_bot will provide you with the channel ID.
- Follow these steps:
-
How do I get the MESSAGE_ID of my file?
- Here's how:
- Copy the link of the message, which looks like this:
https://t.me/c/1833807432/3
. - The number at the end (in this case,
3
) is the message ID of your file.
- Copy the link of the message, which looks like this:
- Here's how:
Stay informed about the latest updates by joining our channels / groups :