Skip to content

A Telegram bot created in Node.js using the qBittorrent Api to control qBittorrent from Telegram.

License

Notifications You must be signed in to change notification settings

joybiswas007/node-qbittorrent-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qBittorrent-telegram-bot

A Telegram bot created in Node.js using the qBittorrent Api to control qBittorrent from Telegram.

Requirements

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;

Usage

To run the bot, use the following command: npm run start or npm run dev

Available commands

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.

Features

More features coming soon. Feel free to send pull requests.

Credits

Based on this API scttcper/qbittorrent ❤️

About

A Telegram bot created in Node.js using the qBittorrent Api to control qBittorrent from Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published