A Telegram bot created in Node.js using the qBittorrent Api to control qBittorrent from Telegram.
First clone the repo
Navigate to the cloned directory
Install dependencies: npm install
Create a .env
file inside the directory and fill in all the details.
Example .env
file:
BOT_TOKEN=123456:ABCDEFGHJIKHLF
QBIT_WEBUI_URL=Qbitwebuiurl
QBIT_USERNAME=USERNAME
QBIT_PASSWORD=PASSWORD
SUDO_USER=TELGRAM_USER_ID
DISK_PATH=/home/downloads
Grab your telegram bot token from BotFather your-qbit-webui-link //Enter the qBittorrent webui url grab your userid from this bot @userinfobot Location of your downloaded files;
To run the bot, use the following command: npm run start
or npm run dev
Just send a .torrent file to the bot and the bot will automatically download the torrent(s);
/magnet or /m "magnet url" - add torrent magnet(s).
/remove "torrentid" - remove torrent from client without data require torrent id.
/cancel "torrentid" - remove torrent from client with data must require torrent id
/pause "torrentid" - pause torrent(s) require torrent id;
/resume or /rs "torrentid" - resume torrent(s) require torrent id.
/status - this command will give you list of torrents added in your client along with other information.
/status "torrentid" - by passing id with status command it give you detailed information about a specific torrent from your client.
/stats - running this comamnd give your information about server and clients.
More features coming soon. Feel free to send pull requests.
Based on this API scttcper/qbittorrent ❤️