This is the sources of a Telegram Bot is designed to help you search for torrents and remotely download them to your PC using the qBittorrent client. Once the torrent is downloaded, you can ask the Bot to send you any file from the torrent and download it from any other device.
This Bot is created for a personal usage, so it might have some bugs or not work perfectly. If you have any questions, issues or improvements, feel free to open an issue ticket or submit a pull request.
This Bot will not help you overcome the restrictions associated with blocking torrent trackers, since it runs locally on your PC.
-
Create a New Bot on Telegram:
- Open the Telegram and search for the
BotFatherbot. - Start a chat with
BotFatherand send the command/newbot. - Follow the prompts to name your bot and create a unique username for it.
- Once done,
BotFatherwill provide you with aTOKEN. Keep this token safe as you'll need it later.
- Open the Telegram and search for the
-
Obtain
API_IDandAPI_HASH- Obtain
API_IDandAPI_HASHas described in https://core.telegram.org/api/obtaining_api_id. It will be used to run a localAPI Serverto allow theBotto send large files.
- Obtain
-
Register on Rutracker:
- Go to the Rutracker website and create an account if you don't already have one.
- Note down your Rutracker
USERNAMEandPASSWORD. These credentials will be used by the bot to login and perform searches.
Open your terminal and run the following command:
tmpfile=$(mktemp) && curl -sSL https://raw.githubusercontent.com/strayiker/smart-home-media-assistant-telegram-bot/refs/heads/main/scripts/setup.sh -o $tmpfile && chmod +x $tmpfile && bash -i $tmpfile && rm $tmpfileIt will ask you for some necessary information, so don't go too far.
To update the Bot to the latest version, run the following command in the folder where your Bot is installed:
./update.sh