这是为 每日羊角观察 频道的附属频道 羊角微博观察 编写的 RSS bot 。
在频道中使用时,希望您能说明使用了本项目,并附上到本项目的链接。
本项目原是 BoKKeR/RSS-to-Telegram-Bot 的 fork ,考虑到改动较大, 因此复制成独立的 repository 。
宽度 + 高度 <= 10000MANAGER 发送含错误信息的提示 (未设定则直接发送至 CHATID )MANAGER 时只会响应对应用户的命令 (未设定则只响应 CHATID 对应用户的命令)
MANAGER 并使用其对应的用户操作,否则不会响应CHATID ) 推送 RSSRSS to Telegram bot (Weibo Ver.)
成功添加一个 RSS 源后, 机器人就会开始检查订阅,每 300 秒一次。 (可修改)
标题为只是为管理 RSS 源而设的,可随意选取,但不可有空格。
命令:
/help : 发送这条消息
/add 标题 RSS : 添加订阅
/remove 标题 : 移除订阅
/list : 列出数据库中的所有订阅,包括它们的标题和 RSS 源
/test RSS 编号(可选) : 从 RSS 源处获取一条 post (编号为 0-based, 不填或超出范围默认为 0)
您的 chatid 是: 0123456789
TOKENCHATID
CHATID 格式为 @channelusername (不要忘记将 bot 添加到频道里!)MANAGERFor the docker image go to: https://hub.docker.com/r/rongronggg9/rss-to-telegram
docker create \
--name [container name] \
--restart unless-stopped \
-v [path to config]:/app/config \
-e DELAY=[delay] \
-e TOKEN=[bot token] \
-e CHATID=[target user userid / @channelusername] \
-e MANAGER=[bot manager userid] \
rongronggg9/rss-to-telegram
docker start [container name]
Python 3.6+
pip install feedparser
pip install python-telegram-bot
pip install html2text
pip install bs4
A telegram bot is needed that the script will connect to. https://botsfortelegram.com/project/the-bot-father/ Running the script and typing in /help will reveal the current chatId, this needs to be set also in the script
Warning! Without chatID the bot wont be able to send automated messages and will only be able to respond to messages.

A self-hosted telegram python bot that dumps posts from RSS feeds to a telegram chat. This script was created because all the third party services were unreliable.

For the docker image go to: https://hub.docker.com/r/bokker/rss.to.telegram/
Python 3.X
pip install feedparser
pip install python-telegram-bot
A telegram bot is needed that the script will connect to. https://botsfortelegram.com/project/the-bot-father/ Running the script and typing in /help will reveal the current chatId, this needs to be set also in the script
Warning! Without chatID the bot wont be able to send automated messages and will only be able to respond to messages.
send /help to the bot to get this message:
RSS to Telegram bot
After successfully adding a RSS link, the bot starts fetching the feed every 60 seconds. (This can be set) Titles are used to easily manage RSS feeds and need to contain only one word
commands:
/add title http://www(.)URL(.)com
/help Shows this text
/remove !Title! removes the RSS link
/list Lists all the titles and the RSS links from the DB
/test Inbuilt command that fetches a post from Reddits RSS.
The current chatId is: 20416xxxx
If the bot is set to for example 5 minutes and one feed manages to get 2 new posts before the bot can check. Only the newest post will show up on telegram. (注:本项目已修复)
docker create \
--name=rss.to.telegram \
-e DELAY=60 \
-e TOKEN=InsertToken \
-e CHATID=InsertChatID \
-v /path/to/host/config:/config \
--restart unless-stopped \
bokker/rss.to.telegram
Content type
Image
Digest
Size
64.6 MB
Last updated
over 5 years ago
docker pull benzking/rss2tg_bot