Telegram RSS bot - Comprehensive installation tutorial for Flowerss bot

888u

Last update at :2024-03-01,Edit by888u

A brief introduction to Flowerssr bot

RSS is based on the XML standard, a content packaging and delivery protocol widely used on the Internet.

It is widely used in blogs, magazines, etc., and Flowerssr bot is a Telegram RSS Bot that supports real-time preview within the application.

Installation tutorial

Please install Docker first before preparing to install, install the command

#CentOS 6 system rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on #CentOS 7, Debian, Ubuntu system curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker

Use software such as Putty or Xshell to enter your series and execute the following command

mkdir ~/flowerss &&\ wget -O ~/flowerss/config.yml \ https://raw.githubusercontent.com/indes/flowerss-bot/master/config.yml.sample

Then we need to edit the config.yml file. Specifically, we can use WinSCP or Pagoda file management (docker can also be installed in the Pagoda panel).

It is not recommended for novices to use the vim command to edit directly.

The directory where the file is located:/root/flowerss/config.yml

After opening, refer to the configuration below. There is a small pit here. bot_token: xxxxx:xxxxxxxxxxxxxxxxxxxx There is a space after the colon.

bot_token: xxxxx:xxxxxxxxxxxxxxxxxxxxx #Telegram bot’s key telegraph_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #telegraph’s key #Multiple telegraph_tokens can be in array format: #telegraph_token: # - token_1 # - token_2 telegraph_account: kxcepinger telegraph_author_name: kxcepinger telegraph_author_url: https://www.kxceping.com socks5: #Used in environments where Telegram API cannot function normally, ignored under normal circumstances. update_interval: 10 #Update time user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 # mysql: # host: # port: #user: # password: # database: #telegram: #endpoint: log: level: release db_log: false #Print database log, false will only print database error log # file: ./flowerss.log sqlite: path: /root/.flowerss/data.db allowed_users: - xxxxxxxxxx #Enter telegram ID

The meaning of each parameter

Configuration items meaning Is it required?
bot_token Telegram Bot Token Required
telegraph_token Telegraph Token, used to transfer original text to Telegraph Can be ignored (do not transfer the original text to Telegraph)
preview_text Plain text preview word count (without Telegraph) Can be ignored (default 0, 0 is disabled)
user_agent User Agent Can be ignored
disable_web_page_preview Whether to disable web page preview Can be ignored (default is false, true is disabled)
update_interval RSS feed scan interval (minutes) Ignoreable (default 10)
error_threshold Maximum number of source errors Ignoreable (default 100)
socks5 Used in environments where Telegram API cannot function properly Can be ignored (can connect to Telegram API server normally)
mysql MySQL database configuration Ignoreable (use SQLite)
sqlite SQLite configuration Can be ignored (this item is invalid when mysql has been configured)
telegram.endpoint Custom telegram bot api url Can be ignored (use default api url)
allowed_users User telegram id allowed to use bot, Can be ignored, if empty, all users can use the bot

There are still relatively few modifications we need to make here. Here are the ones we will use.

1. Obtain the token of telegram bot

Search for @BotFather in telegram, then enter /newbot, fill in the relevant information, and the bot token will be automatically generated.

2. Obtain telegraph token

Open a browser and enter the following: https://api.telegra.ph/createAccount?short_name=xxxxxx&author_name=xxxxx&author_url=https://xxxxxxxxxxxxxxxx Among them, xxxxxx is the content you are going to fill in, which are "Abbreviation", "Author Name", and "Author Website". Mine are kxcepinger and https://www.kxceping.com Specific example: https://api.telegra.ph/createAccount?short_name=kxcepinger&author_name=kxcepinger&author_url=https://www.kxceping.com

3. Get telegram ID

Search @getmyid_bot in telegram and click "Start" to get the user ID.

4. Comment out mysql and just add # in front of it.

To run the deployment, we directly execute the following command

docker run -d -v ~/flowerss:/root/.flowerss indes/flowerss-bot

My robot is @kxcepinger_bot

How to use

Mainly divided into personal subscription and channel subscription

Personal subscription

/sub [url] Subscription (url is optional) /unsub [url] Unsubscribe (url is optional) /list View current subscriptions /set Set subscription /check Check current subscription /setfeedtag [sub id] [tag1] [tag2] Set subscription tags (up to three tags, separated by spaces) /setinterval [interval] [sub id] Set subscription refresh frequency (multiple sub ids can be set, separated by spaces) /activeall activates all subscriptions /pauseall Pause all subscriptions /import Import OPML file /export Export OPML file /unsuball Unsubscribe all subscriptions /help help

As an example of the /sub command, my RSS subscription is https://www.kxceping.com/feed. Then write /sub https://www.kxceping.com/feed

Channel subscription

/sub @ChannelID [url] Subscribe /unsub @ChannelID [url] Unsubscribe /list @ChannelID View current subscriptions /check @ChannelID Check current subscription /unsuball @ChannelID Unsubscribe all subscriptions /activeall @ChannelID activate all subscriptions /setfeedtag @ChannelID [sub id] [tag1] [tag2] Set subscription tags (up to three tags, separated by spaces) /import Import OPML file /export @ChannelID export OPML file /pauseall @ChannelID Pause all subscriptions

Similarly, for example, my channel is @kxceping, Then write /sub @kxceping https://www.kxceping.com/feed

Recommended site searches: dual-line space, website registration query, Japanese server free IP, domain name space registration, domain name transaction, server, all-purpose virtual host, IP address search, permanent free space,

Telegram RSS bot - Comprehensive installation tutorial for Flowerss bot

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