Tutorial on building a Telegram RSS subscription robot under Linux and adding RSS subscription to Telegram channels and groups

Tutorial on building a Telegram RSS subscription robot under Linux and adding RSS subscription to Telegram channels and groups

It’s more convenient to build one yourself.
Successfully built on Ubuntu 16.04 64-bit and Centos 7.
Demo: https://t.me/zhujiwiki_bot

1. Direct installation <br /> The simplest and recommended method.
1. Download rssbot

 wget --no-check-certificate https://github.com/iovxw/rssbot/releases/download/v1.4.4/rssbot-v1.4.4-linux.zip unzip rssbot-v1.4.4-linux.zip

2. Run rssbot in the background
screen -S rssbot
./rssbot DATAFILE TELEGRAM-BOT-TOKEN

DATAFILE is the database save path (actually it is a json file, no need to create it manually)
TELEGRAM-BOT-TOKEN is the token of the robot you created

If you want to restore rssbot:

 screen -r rssbot

2. Compile and install

1. Apply for and set up an RSS subscription bot on Telegram <br /> Search @BotFather, /newbot, and create a new Bot

Enter /mybots to find your bot, select it, then select Edit Bot, select Edit Commands and enter your commands.

 rss - 顯示當前訂閱的RSS 列表,加raw 參數顯示鏈接sub - 訂閱一個RSS: /sub http://example.com/feed.xml unsub - 退訂一個RSS: /unsub http://example.com/feed.xml unsubthis - 使用此命令回復想要退訂的RSS 消息即可退訂, 不支持Channel export - 導出為OPML

2. Setup on VPS or dedicated server (SSH)
Install related apps

 apt-get update -y && apt-get -y install openssl pkg-config libssl-dev screen

Install Rust Nightly

 curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly

Install rssbot

 wget https://github.com/iovxw/rssbot/archive/v1.4.2.tar.gz tar xvf v1.4.2.tar.gz cd rssbot-1.4.2 cargo build --release

Run rssbot

 cd target/release screen -S rssbot ./rssbot DATAFILE TELEGRAM-BOT-TOKEN

DATAFILE is the database save path (actually it is a json file, no need to create it manually)
TELEGRAM-BOT-TOKEN is the token of the robot you created

3. Use RSS subscription robot to add RSS subscription to Telegram channels and groups

1. Add the RSS robot as an administrator in the group or channel, with only the permission to send messages.

2. In the RSS subscription robot, send a message and the subscription format is:

/sub TG group or channel ID Subscription feed, such as /sub zhujiwiki_info https://zhujiwiki.com/feed

via: https://www.sabia.cc/rss-chinese-subscription-robot-using-vps-20180329.html, https://github.com/iovxw/rssbot

<<:  Time4VPS: 50-70% off on all items, 500GB of storage for 12 euros per year

>>:  InvioSolutions: $3/month/2GB RAM/20GB NVMe space/unlimited traffic/KVM/Germany/France

Recommend

RutiHost: €9.9/month/2GB RAM/20GB SSD space/2TB traffic KVM/Germany/New York

RutiHost, a foreign hosting company, was establis...

Free Website Monitoring

1. Alibaba Cloud Monitoring Alibaba Cloud Monitor...

LNMP free installation package

IT Chenyi's LNMP free installation package, t...