Install Telegram RSS Bot under Centos, you can join Telegram channels and groups, and subscribe to RSS information for Telegram channels and groups.

888u

Last update at :2024-07-12,Edit by888u

Docker installation is easier: 1. Install Docker #CentOS 7, Debian, Ubuntu

curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker

2. Install flowerss

#Fill in the bot_token and telegraph_token parameters and run docker run --restart=always --name flowerss -d -v /flowerssdata:/var/flowerss indes/flowerss-bot -b bot_token -t telegraph_token

Docker uses the SQLite database by default, and the files are stored in the /flowerssdata folder.

3. How to use Channel subscription

a. Add Bot as Channel administrator b. Send relevant commands to Bot /sub @botname https://bmvps.com/feed

#Channel subscription supported commands

/sub [url] Subscription (url is optional) /unsub [url] Unsubscribe (url is optional) /list View current subscriptions /set Set subscription /import Import OPML file /export Export OPML file /unsuball Unsubscribe all subscriptions /help Help

ChannelID is only available if set to Public Channel. If it is a Private Channel, it can be temporarily set to Public, and then changed to Private after the subscription is completed, which will not affect the Bot's push message.

————History————

This article is based on Centos6 64-bit, and the source code is https://github.com/indes/flowerss-bot

1. Install related dependencies

yum install make gcc git -y

2. Install Golang

wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz tar -C /usr/local -xzf go1.12.6.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' >>/etc/profile source /etc/profile

3. Install flowerss-bot

git clone https://github.com/indes/flowerss-bot cd flowerss-bot make build

4. Set relevant bot configuration

viconfig.yml

bot_token: XXX telegraph_token: xxxx update_interval: 5 path: ./data.db

Get bot_token: In Telegarm, search for @botfather, enter /newbot and fill in according to the instructions Telegraph_token acquisition: In VPS, curl https://api.telegra.ph/createAccount?short_name=lowvps&author_name=lowvps&author_url=https://bmvps.com

For the SQLite used above, you can also use Mysql. Replace path: ./data.db with the following host: 127.0.0.1 port: 3306 user: user password: pwd database: flowers

5. Set up startup Create a new Systemd configuration file, which is only applicable to CentOS 7, Debian 8+, Ubuntu 16+, etc.

cat > /etc/systemd/system/flowerss.service <

[Service] Type=simple PIDFile=/var/run/flowerss.pid WorkingDirectory=/root/flowerss-bot ExecStart=/root/flowerss-bot/flowerss-bot RestartPreventExitStatus=23 Restart=always

[Install] WantedBy=multi-user.target EOF

Start and start automatically:

systemctl start flowers systemctl enable flowers

6. How to use Channel subscription:

1. Add Bot as Channel administrator 2. Send relevant commands to Bot /sub @botname https://bmvps.com/feed

#Channel subscription supported commands

/sub [url] Subscription (url is optional) /unsub [url] Unsubscribe (url is optional) /list View current subscriptions /set Set subscription /import Import OPML file /export Export OPML file /unsuball Unsubscribe all subscriptions /help help

ChannelID is only available if set to Public Channel. If it is a Private Channel, it can be temporarily set to Public, and then changed to Private after the subscription is completed, which will not affect the Bot's push message.

Recommended site searches: domain name registration website, me domain name, registration and cancellation, registration information cloud server rental, free cloud server, Korean high-defense server, cloud server rental, ftp free space, Hong Kong vps host,

Install Telegram RSS Bot under Centos, you can join Telegram channels and groups, and subscribe to RSS information for Telegram channels and groups.

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