MN-Bot is an advanced Telegram bot designed to automatically post torrent files from 1TamilBlasters to a specified Telegram channel. The bot performs periodic checks to ensure the latest torrents are fetched and posted seamlessly.
- 🚀 Automatic Torrent Fetching: Scrapes torrent files from 1TamilBlasters and posts them to a Telegram channel.
- 🛠️ Flask Health Check: Includes a lightweight Flask server to monitor the bot's health.
- 🔄 Threaded Flask Server: Ensures the Flask server runs in a separate thread, preventing any interference with the bot’s core functionality.
- ☁️ Cloud Deployment Ready: Compatible with platforms like Koyeb and Render.
Install the required libraries by running the following command:
pip install -r requirements.txt
Ensure the following configurations are set in the config.py
file:
- BOT: The bot's token.
- API: The Telegram API ID and API Hash.
- OWNER: The Telegram user ID of the bot's owner.
- CHANNEL: The Telegram channel ID where torrents will be posted.
-
Clone the repository:
git clone https://github.com//MN-BOTS/Tamil-Blasters-Rss-Bot.git cd test
-
Install dependencies:
pip install -r requirements.txt
-
Run the bot:
python bot.py
- Log in to Koyeb.
- Create a new service and link it to your GitHub repository.
- Add all required environment variables (e.g.,
BOT_TOKEN
,API_ID
,API_HASH
, etc.) in the service configuration. - Deploy the service.
- Log in to Render.
- Create a new web service and connect it to your GitHub repository.
- Add the necessary environment variables like
BOT_TOKEN
,API_ID
,API_HASH
, etc. - Set the Start Command to:
python bot.py
- Deploy the service.
- The bot requires valid Telegram API credentials to function.
- Ensure the target Telegram channel allows the bot to post messages.
- The bot performs periodic checks every 15 minutes to fetch and post new torrents.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.