A telegram rssbot based on RustRssBot
via rust lang.
Origin Project: https://github.com/iovxw/rssbot
to make a rss bot, you should run these to make it server.
wget https://github.com/nanqinlang-mogic/RustRssBot/releases/download/1.1/rssbot
chmod +x rssbot
nohup ./rssbot datafile ${TELEGRAM-BOT-TOKEN} &
the following is each command and function of the bot:
command | function | parameter |
---|---|---|
list | show subscribe list | /list (${Channel-Username}) (display-url) |
subscribe | subscribe one | /subscribe (${Channel-Username}) ${rss-url} |
unsubscribe | unsubscribe one | /unsubscribe (${Channel-Username}) ${rss-url} |
if you want to compile it by yourself, you should download source
and prepare a Rust & Cargo
environment.
git clone --branch=31.March https://github.com/nanqinlang-mogic/RustRssBot.git
advise you to use rustup, the installation is in there.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
source $HOME/.cargo/env
install dependences:
apt-get install -y openssl libssl-dev pkg-config
then start compile it:
cd source
cargo build --release
then, the implement file is in ~/target/release/rssbot