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

888u

Last update at :2024-05-27,Edit by888u

It is better to build one yourself, it is more convenient. Successfully built under Ubuntu 16.04 64-bit and Centos 7. Demo: https://t.me/we_bot

1. Direct installation The most concise and recommended to use. 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 saves the path to the database (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 and set up RSS subscription robot on Telegram Search @BotFather,/newbot, create a new Bot

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

rss - Display the RSS list of current subscriptions, add the raw parameter to display the link sub - subscribe to an RSS: /sub http://example.com/feed.xml unsub - Unsubscribe from an RSS: /unsub http://example.com/feed.xml unsubthis - Use this command to reply to the RSS message you want to unsubscribe to unsubscribe. Channel is not supported. export - export to OPML

2. Settings on VPS or dedicated server (SSH) Install related applications

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 saves the path to the database (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 the RSS subscription robot to add RSS subscriptions to Telegram channels and groups

1. Add the RSS robot as an administrator in the group or channel where you are located, and only have permission to send messages.

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

/sub TG group or channel ID feed, such as /sub @we_info https://we.com/feed

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

Recommended site search: dynamic dial-up vps host, Hong Kong server, query whether a domain name is registered, Hong Kong hosting, corporate virtual host, domain name, cpanel space, domain name registration service, how to cancel domain name registration, cn domain name price,

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

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码