An RSS/Atom bot for telegram channels
Make sure that you have installed Redis.
Download binary:
$ curl -L https://github.com/rossnomann/telefeed/releases/download/0.6.0/telefeed-0.6.0_x86_64-linux-gnu --output telefeed
$ chmod +x telefeed
Create config.toml
:
token = "bottoken"
redis_url = "redis://127.0.0.1:6379"
# include_feed_title = true # include feed title to entry link; defaults to false
# request_timeout = 3600 # timeout between requests in seconds; defaults to 1200 (20 minutes)
[[feeds."@channel"]] # channel username with @
url = "http://www.darkside.ru/rss/" # url to feed
kind = "rss" # kind of feed: rss/atom
# request_timeout = 20 # override root value
[[feeds.1234567890]] # channel ID also supported
url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCX5180-7TnjjHlHaVDdqnmA"
kind = "atom"
# include_feed_title = false # override root value
[[feeds.1234567890]]
url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC2S1gZS9e8jb3Mx1Ce6YH5g"
kind = "atom"
Run:
./telefeed config.toml
Make sure that you have enabled nix flakes and installed direnv.
echo 'use flake' > .envrc
direnv allow
Command for rust analyzer LSP config:
nix develop /path/to/project --command rust-analyzer
To start/stop redis use ./dev/redis-start
and ./dev/redis-stop
.
To build a release binary use ./dev/build
.
request_timeout
option to root and feed config section.include_feed_title
option to feed config section.include_feed_title
option to config.
Set it to true
when you need to know feed title for each entry.The MIT License (MIT)