rossnomann / telefeed

An RSS/Atom bot for telegram channels
MIT License
17 stars 5 forks source link
rss telegram-bot

TELEFEED

An RSS/Atom bot for telegram channels

Installation

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

Development

NixOS

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.

Changelog

0.7.0 (07.07.2024)

0.6.0 (01.01.2024)

0.5.0 (05.12.2023)

0.4.0 (04.02.2022)

0.3.0 (15.03.2020)

0.2.3 (20.02.2020)

0.2.2 (31.01.2020)

0.2.1 (19.01.2020)

0.2.0 (17.01.2020)

0.1.5 (04.07.2018)

0.1.4 (19.06.2018)

0.1.3 (18.05.2018)

0.1.2 (15.03.2018)

0.1.1 (11.03.2018)

0.1.0 (09.03.2018)

LICENSE

The MIT License (MIT)