Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (50 loc) · 3.85 KB

README.md

File metadata and controls

71 lines (50 loc) · 3.85 KB

TG DL Api Workers

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.

Total Repo Views

Demo

Check out the demo PDF download link: https://dl.techzbots.co/file/-1001833807432/3

How to Use on Your Own Channel:

  1. Add @TG_DL_Api_Workers_Bot to your channel as an admin with edit message rights.
  2. Obtain your Telegram channel ID or username.
  3. Upload a file to your Telegram channel and get its message ID.
  4. 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:

Important Note

  • 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.

Deploying The API

Follow these steps to deploy the API:

  1. Create an account on Cloudflare and log in.
  2. Navigate to the Workers & Pages tab in the sidebar.
  3. Click on the Create Application button.
  4. Create a new worker by clicking on the Create Worker button.
  5. Deploy the worker by clicking on the Deploy button.
  6. Edit the code by clicking on the Edit Code button.
  7. Copy the full code from the worker.js file.
  8. Paste the code into Cloudflare.
  9. Create a new bot using @BotFather.
  10. Add your bot token to the Cloudflare code at the top, inside the const BOT_TOKENS = []; section.
  11. Finally, click on Deploy to activate your API.

Certainly! Let's improve the FAQs section of your project. Here are some suggestions:

Frequently Asked Questions (FAQs)

  1. Does this API support groups?

    • No, this API does not support groups. You must use a Telegram channel instead.
  2. 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.
  3. How do I get the CHANNEL_ID of my channel?

    • Follow these steps:
      1. Forward any message from your channel to @MissRose_bot.
      2. Reply with the command /id to the forwarded message.
      3. @MissRose_bot will provide you with the channel ID.
  4. How do I get the MESSAGE_ID of my file?

    • Here's how:
      1. Copy the link of the message, which looks like this: https://t.me/c/1833807432/3.
      2. The number at the end (in this case, 3) is the message ID of your file.

🔔 Join For Latest Updates / Support

Stay informed about the latest updates by joining our channels / groups :

Telegram Channel Telegram Group