A self-hosted Telegram Python Bot that dumps posts from Jackett RSS feeds to a Telegram chat. Based on RSS to Telegram bot by BoKKeR (Thanks for your effort).
A Telegram Bot is needed that the script will connect to.
You could use this post to create your own with the BotFather Telegram Bot.
Warning! Without chatID the bot wont be able to send automated messages and will only be able to respond to messages.
$ docker create \
--name=jackett2telegram \
-e DELAY=600 \
-e TOKEN=<your_telegram_bot_token> \
-e CHATID=<your_telegram_bot_chatid> \
-v </path/to/host/config>:/app/config \
-v </path/to/host/blackhole>:/app/blackhole \
--restart unless-stopped \
danimart1991/jackett2telegram
You could include -e LOG_LEVEL=<log_level>
where <log_level>
must be critical, error, warning, info (default) or debug.
Python 3.X
-
Clone the script
-
Install depedencies with:
pip install -r requirements.txt
-
Replace your
ChatID
andToken
on the top of the script. -
Edit the delay (seconds).
-
Run the script with:
python jackett2telegram.py
Send /help
command to the bot to get this message:
Jackett2Telegram (Jackett RSS to Telegram Bot)
After successfully adding a Jackett RSS link, the bot starts fetching the feed every 600 seconds. (This can be set)
Titles are used to easily manage RSS feeds and should contain only one word and are case sensitive.
Commands:
- /help Posts this help message. 😑
- /add TITLE JACKETT_RSS_FEED_URL - Adds new Jackett RSS Feed (overwrited if title previously exist).
- /remove TITLE - Removes the RSS link.
- /list Lists all the titles and the asociated Jackett RSS links from the DB.
- /test JACKETT_RSS_FEED_URL - Inbuilt command that fetches a post (usually latest) from a Jackett RSS.
In order to use Blackhole, your Torrent client must support it and be configured to point to Jackett2Telegram Blackhole folder.
If you like the project, star it on GitHub.
You could get the Jackett RSS Feed Url using the action button in Indexers list:
Then paste the Url in the chat like /add AnyTitle Pasted_RSSFeedURL
and send the message. The bot will reply with the result.
Blackhole folder is a monitored folder that your Torrent client checks to look for .torrent
files and then download them automatically.
First, you must read the documentation of the Torrent client to make sure is supported and simply configure it to point to the blackhole folder created by Jackett2Telegram.
When a new release is showed in Telegram, a Blackhole button could be pressed and download the .torrent
file locally, then Torrent client use it.
If you use the Docker installation, make a bind between folders.