Bash script that sends a message to the telegram bot after the qbittorrent finishes downloading a torrent.
-
Create a folder to put the qbittorrent_telegram_notification.sh and bot_credentials.sh scripts
sudo mkdir qbittorrent
-
Give all the permissions to that folder
sudo chmod -R 777 /qbittorrent
-
Allow the execution of the script
sudo chmod +rx qbittorrent_telegram_notification.sh
sudo chmod +rx bot_credentials.sh
-
Open the qbittorrent settings on web UI, go to options, and add the script path along with the required parameters:
/qbittorrent/qbittorrent_telegram_notification.sh “%N” “%Z”
.
Note: You can access any additional parameters inside the script by $1
, $2
, and so on. (i.e: TORRENT_NAME="$1"
)