Before diving into using this repository, here are a few essential points to keep in mind:
-
Workers have limitations:
- Cloudflare Workers have certain limitations, one of which is the inability to fetch direct IPs.
- Therefore, it's necessary to connect a domain to your server's IP using proxy services such as Nginx, Apache, etc.
-
Telegram Webhook Limitations
- add later
- NZB Downloading: Utilizes SABnzbd or NZBGet to download NZB files from Usenet.
- Indexer Search: Integrated with NZBHydra API to search across multiple indexers simultaneously.
- Google Drive Upload: Automatically uploads downloaded files to Google Drive for convenient access.
- Cloudflare Workers Hosting: Hosted on Cloudflare Workers, ensuring reliable performance and scalability.
- Telegram RAW API: Employs Telegram RAW API for efficient communication with Telegram users.
-
Cloudflare Workers Setup
- Clone this repository.
- Configure your Cloudflare Workers account and set up a new worker.
- Deploy the code to your Cloudflare Worker.
-
Telegram Bot Setup
- Create a new Telegram bot using BotFather.
- Set up a webhook for the bot using Cloudflare Workers URL.
- Obtain the bot token.
-
Configuration
- Configure the bot settings including Usenet download client (SABnzbd/NZBGet), NZBHydra API key, Google Drive credentials, etc., in the
config.js
file.
- Configure the bot settings including Usenet download client (SABnzbd/NZBGet), NZBHydra API key, Google Drive credentials, etc., in the
-
Deployment
- Deploy the updated code to your Cloudflare Worker.
-
Usage
- Start using the bot by interacting with it in your Telegram account.
- Use commands to search for NZB files, initiate downloads, and manage files.
/search [query]
: Search for NZB files across all indexers./grab [NZB ID]
: Add an NZB file for download./grab [Reply to a NZB File]
: Add an NZB file for download./status
: List current downloads./cancel [NZB ID]
: Cancel a download./status [download_id]
: Get the status of a download./help
: Display help information.
- Shlok Dhakrey - Developer
This project is licensed under the MIT License.
This project is provided as-is without any warranties or guarantees. Use at your own risk.