A simple bash file to send notifications to telegram 💪
- A Telegram bot Guide
- The bots ID (Look for "Use this token to access the HTTP API:" in the message from BotFather)
- Your own telegram ID Guide
- Clone this repo to your server
git clone https://github.com/mkgeeky/telegram-notification.git
- Rename notification_sample.sh to notification.sh
mv notification_sample.sh notification.sh
- Make notification.sh executeable
chmod +x /PathTo/notification.sh
- Edit notification.sh with the IDs from above
TELEGRAM_BOT_ID = BOT ID
TELEGRAM_USER_ID = YOUR ID
Add following line to .rtorrent.rc
method.set_key = event.download.finished,notify_me,"execute=/PathTo/notification.sh,rtorrent,$d.name="
Then restart rtorrent
- Under your Filters go to Actions and create a new action.
- Select Exec
- Call in whatever you want.
- In Command add /PathTo/notification.sh
- In Arguments add autobrr {{ .TorrentName }}
- Remember to click save 😁
From now on: everything rtorrent has finished download OR autobrr graps a torrent - you get a notification in Telegram 🙂