Telegram Group Search
#Release 自定义格式、新本地化、改进的媒体回落和更多 (v2.1.0)

官方的公开 bot @RSStT_Bot 一直使用 dev 分支。如果你正在使用它,你可能已经注意到新功能了。由于添加了新的命令,请使用 /lang 命令再一次选择你的语言,让 bot 更新你的命令列表。

重大变更

由于加入了新的自定义设置,现在需要启用 inline 模式。请到 @BotFather ,发送 /setinline,选择你的 bot,并回复一个你喜欢的 inline 占位符。例如,@RSStT_Bot 使用的是 Please input a command to continue...

新特性

亮点

● 更多自定义格式化选项: /set 命令可以发挥它的全部威力了。你可以控制媒体或者任何元数据是否显示,还可以添加自定义 hashtag 和设置自定义订阅标题。但这些都需要启用 inline 模式。请阅读 格式设置指南 了解格式设置的详细信息。
● 用户默认格式化设置: 使用 /set_default 命令来设置你的默认格式化设置。这将应用到你的所有新订阅,如果你喜欢,你也可以让现有订阅也使用它。如果你想给大多数你的订阅应用相似的设置,这是非常有用的。
● 新本地化: 意大利语 (Italiano)、土耳其语 (Türkçe)、加泰罗尼亚语 (Català) 和法语 (français)。想要添加你的语言吗?请在这里阅读翻译指南。
● RSS 源嗅探器: 如果你尝试订阅一个网页而不是 RSS 源,bot 将尝试从网页中提取 RSS 源。(注意:这仅在网页中包含 RSS 源链接时有效。)
● Enclosure 支持: Bot 现在可以从文章的 enclosure 中提取附件。来享受听音频节目,或者下载附件吧!
<audio> 支持: Bot 现在可以从文章中提取音频。来享受听音频节目吧!
● 长图作为文件发送: Bot 现在可以将长图作为文件发送,防止 Telegram 将它压缩得不可读。
● 导入含自定义标题的 OPML 文件: 你现在可以从 OPML 文件导入订阅,而不会丢失你的自定义标题。Bot 将会询问你是否应该使用 OPML 文件中的自定义标题。
● 导出含自定义标题的 OPML 文件: 你现在可以将你的订阅导出到 OPML 文件,而不会丢失你的自定义标题。

本次 release 内容太多,请在 GitHub 阅读全部...

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
#Maintenance
VPS 流量耗尽,正在升级至流量更多的套餐,@RSStT_Bot 需要短时间下线。

The bandwidth usage (traffic) of VPS has been exhausted. Now the VPS is being upgraded. @RSStT_Bot needs to be down for a short time.

捐赠支持 (爱发电) | Patreon
New deploy option: Heroku
RSStT has gained the ability to deploy to Heroku.
Read the deployment guide for more information.

Bot | Channel | Group | GitHub repo | Patreon
新的部署选择: Heroku
RSStT 现已具备部署到 Heroku 的能力。
阅读部署指南以获得更多信息。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
#Release Channel remote management, more formatting options, and more (v2.2.0)

Additions

Highlights

● Channel/group remote management: Now you can manage the subscription of your channel/group in the private chat with the bot. Most commands are supported. Just send commands like /sub @username https://exmaple.com or /sub -10010000000000 https://exmaple.com. (@username is the channel/group's username, @ is required; -10010000000000 is the channel/group's ID, it must start with -100)
● More custom formatting options:
● Media: You can make Telegram messages come with no media (just text) if you want (by default, they always come with media if any media is attached to the post). Also, you can make Telegram messages come with only media and metadata (no content) if you want, only when any media is attached to the post, otherwise, they will still come with the content.
● Link Preview: Now you can force disable link preview for Telegram messages.
● Source: More sourcing formats available. Read the detailed description in the Formatting Settings Guidebook.
● Deployment to Heroku: The bot can now be deployed to Heroku. Read the detailed description in the Deployment Guide.
● User permission management: The bot manager can now manage the permissions of the bot users by using the /user_info command. In this way, the bot manager can set who (user/channel/group) can use the bot, even if the multi-user mode is disabled.

Other additions

● Single-column table support: Formerly, all HTML tables were dropped from the output. Now those tables with only one column are rendered as multi-line text. Note that multi-column tables will still be dropped from the output.
● Audio fallback for lizhi.fm: Automatically fallback to the less-quality version of the audio if the higher-quality version exceeds the file size limit. Only for lizhi.fm.

Enhancements

● Prettified Telegraph post: The format of Telegraph posts is prettified. In addition, all images and videos are using the media relay server to avoid anti-hotlinking.
● Non-HTTP hyperlinks: Non-HTTP hyperlinks are not supported by Telegram. The bot will automatically convert them to bare URLs.
● Enclosure cleaning: If an enclosure with a non-HTTP URL is already included in a link in the post, it will be removed.
● Lazy media validator: The media validator is now lazy. It will only run if a post will be probably sent as Telegram messages. This will reduce CPU usage and network traffic.
● Enhanced image dimension extraction: Image dimension extraction is now faster and more flexible. If failed, the bot will try to extract the dimension using images.weserv.nl.
● L10n update: Turkish (Türkçe) l10n file updated. (English, Simplified Chinese / 简体中文, Traditional Chinese / 正體中文, Cantonese / 廣東話 are always up-to-date.)
● Improved Docker build caching: If the dependencies are not changed, no need to fetch the whole Docker image again. Just use the cached dependencies and fetch the latest source code.
● Extract git info from Railway.app env variables: Deployment on Railway.app can now recognize the git info.
● Minor enhancements

Bug fixes

● Python 3.7 compatibility: The previous version of the bot broke the compatibility with Python 3.7. Now it has been fixed. Please note that only x86 and amd64 architectures are supported. For arm64, the minimum Python version requirement is 3.8.
● EntitiesTooLongError: Posts with tons of text hyperlinks could cause Telegram API to throw this error. Now the bot will try to fix this error by more aggressive post splitting.
<div>: The bot will now ensure that each <div> tag takes up a whole line.

There is too much in this release, read more on GitHub...
[Did you know? The release note above is fetched and generated by RSStT.]

Bot | Channel | Group | GitHub repo | Patreon
#Release 频道远程管理、更多格式化选项和更多 (v2.2.0)

新特性

亮点

● 频道/群组远程管理: 现在你可以在和 bot 的私聊里管理你的频道/群组的订阅。支持使用大部分命令。只需以类似于 /sub @username https://exmaple.com/sub -10010000000000 https://exmaple.com 的格式发送命令。(@username 是频道/群组的用户名, @ 是不可缺少的; -10010000000000 是频道/群组的 ID, 必须以 -100 开头)
● 更多格式化选项:
● 媒体: 你可以选择让 Telegram 消息不带任何媒体 (只有文字)。也可以选择让 Telegram 消息只带有媒体和元数据 (没有内容);只有当有媒体附加到文章时才可如此,否则,它们仍会带有内容。
● 链接预览: 现在你可以强制关闭 Telegram 消息的链接预览。
● 来源: 更多来源格式化选项。阅读 格式设置指南 以获取详细信息。
● 部署到 Heroku: Bot 现在可以部署到 Heroku。阅读 部署指南 以获取详细信息。
● 用户权限管理: Bot 管理员现在可以使用 /user_info 命令来管理 bot 用户 (用户/频道/群组) 的权限。这样管理员就可以设置谁可以使用 bot,即使禁用了多用户模式。

其他新特性

● 单列表格支持: 先前,所有 HTML 表格都被丢弃。现在,只含有单列的表格将被渲染为多行文本。请注意,多列表格仍会被丢弃。
● 适用于 lizhi.fm 的音频回落: 如果高音质音频超出了文件大小限制,自动回落到更低音质的音频。仅适用于 lizhi.fm

增强

● Telegraph 文章美化: Telegraph 文章的格式美化。除此之外,所有图片和视频都使用媒体中继服务器来规避防盗链。
● 非 HTTP 超链接: Telegram 不支持非 HTTP 超链接。Bot 会自动将它们转换为裸 URL。
● Enclosure 清理: 如果一个附件包含非 HTTP URL 且文章中的链接已包含它,它将被移除。
● 懒惰的媒体验证器: 媒体验证器现在是懒惰的。它只有在一篇文章可能作为 Telegram 消息发送时才会运行。这将减少 CPU 使用量和网络流量。
● 增强的图片尺寸提取: 图片尺寸提取现在更快速和灵活。如果提取失败,bot 会尝试使用 images.weserv.nl 来提取。
● 本地化更新: 土耳其语 (Türkçe) 本地化文件已更新。 (英语 / English 、简体中文 、繁体中文 / 正體中文 和 粤语 / 廣東話 永远是最新的。)
● 改进的 Docker 构建缓存: 如果依赖未改变,无需再重新拉取完整的 Docker 镜像。只需使用缓存的依赖并拉取最新的源码。
● 从 Railway.app 的环境变量中提取 git 信息: Railway.app 上的部署现在可以识别 git 信息。
● 次要的增强

Bug 修复

● Python 3.7 兼容性: 上一个版本破坏了与 Python 3.7 的兼容性,现在已经修复了。请注意,仅支持 x86 和 amd64 架构。对于 arm64,最小的 Python 版本要求是 3.8。
● EntitiesTooLongError: 含有大量文本超链接的文章可引起 Telegram API 抛出这个错误。现在 bot 会尝试通过更激进的文章分割来修复这个错误。
<div>: Bot 现在会确保每个 <div> 标签都占据一整行。
● 不必要的图片回落: 如果至少有一张图片需要作为文件发送,bot 不再会将所有图片都回落成文件。
● 网络重试: 增加了一个需要进行重试的异常。
● 网页解码错误: cchardet 并不足够健壮以处理所有源。现在 bot 会尝试从 XML 编码声明中探测网页编码。同时,如果 cchardet 返回了不支持的编码,bot 会尝试使用 UTF-8 来解码网页。任何无法被解码的字符都会被替换为
● 从 Exif 缩略图中提取图片尺寸: 一些图片在 Exif 数据中含有缩略图。Bot 现在会避免从缩略图中提取尺寸。
● 次要的 bug 修复

[你知道吗?上面的 release note 是由 RSStT 抓取并生成的。]

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
New deploy option: install from PyPI

pip3 install -U pip setuptools
pip3 install rsstt
mkdir -p ~/.rsstt
wget https://raw.githubusercontent.com/Rongronggg9/RSS-to-Telegram-Bot/dev/.env.sample -O ~/.rsstt/.env
vi ~/.rsstt/.env # fill in env variables
python3 -m rsstt

Read the deployment guide for more information.

Bot | Channel | Group | GitHub repo | Patreon
新的部署选择: 安装自 PyPI

pip3 install -U pip setuptools
pip3 install rsstt
mkdir -p ~/.rsstt
wget https://raw.githubusercontent.com/Rongronggg9/RSS-to-Telegram-Bot/dev/.env.sample -O ~/.rsstt/.env
vi ~/.rsstt/.env # fill in env variables
python3 -m rsstt

阅读部署指南以获得更多信息。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
#Maintenance
Telegram DC5 is experiencing a severe service downgrade. @RSStT_Bot is unable to send messages.
Telegram DC5 正经历严重的服务降级。 @RSStT_Bot 目前无法发送消息。
#Release Published to PyPI, HTML table converter, and more (v2.2.1)

Additions

Highlights

● Published to PyPI: RSStT is now available on PyPI. You may install it with pip install rsstt. For more details, refer to the Deployment Guide.
● HTML table converter: An HTML table converter has been implemented to convert HTML tables to images. It requires the environment variable TABLE_TO_IMAGE to be set to 1, and CJK fonts to be installed. Please do note that the converter is not perfect, cannot handle rich-text formatting, may not work for all HTML tables, and can potentially lead to a higher performance cost and longer processing time.

Other additions

● New l10n: The Indonesian (id, Bahasa Indonesia) translation has been added.
● Add .env.sample: A sample .env file has been added.

Enhancements

● Natural sorting: Send posts from the oldest to the newest.
● Timed GC: Perform a GC (garbage collection) every 10 minutes to clean up the memory.
● Update l10n: The Turkish (tr, Türkçe) translation has been updated.
● Security: Execute git outside of the shell.
● Minor enhancements

Bug fixes

● Misfired monitor job: Increased the misfire_grace_time to 10s to avoid monitor jobs being misfired because of high load.
● Deps bump: Fixed an upstream bug preventing users from resetting all subscriptions to the user's default settings on a PostgreSQL-based instance.
● Minor bug fixes

Bot | Channel | Group | GitHub repo | Patreon
#Release 发布至 PyPI、HTML 表格转换器和更多 (v2.2.1)

新特性

亮点

● 发布至 PyPI: RSStT 现在可从 PyPI 中获取。可通过 pip install rsstt 来安装。详细信息请参阅部署指南.
● HTML 表格转换器: 实现了一个 HTML 表格转换器,可以将 HTML 表格转换为图片。需要将环境变量 TABLE_TO_IMAGE 设置为 1,并且需要安装 CJK 字体。请注意,转换器不是完美的,不能处理富文本格式,可能无法处理所有的 HTML 表格,并可能会导致更高的性能成本和更长的处理时间。

其他新特性

● 新的本地化: 增加了印度尼西亚语 (id, Bahasa Indonesia) 的翻译。
● 增加 .env.sample: 增加了范例 .env 文件。

增强

● 自然排序: 从旧到新推送文章。
● 定时 GC: 每 10 分钟执行一次 GC (垃圾回收) 以清理内存。
● 本地化更新: 更新了土耳其语 (tr, Türkçe) 的翻译。
● 安全: 在 shell 之外执行 git
● 次要的增强

Bug 修复

● 监视任务启动失败: 增加了 misfire_grace_time 至 10s 以避免监视任务由于高负载未能启动。
● 依赖更新: 修复了一个阻止用户在使用 PostgreSQL 的实例上重置所有订阅到用户的默认设置的上游 bug。
● 次要的 bug 修复

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
I would like to share some data with you.

~750 users/groups/channels have used @RSStT_Bot, of which ~300 have at least one subscription currently. About half of them are ordinary users and half are channels/groups.
There are ~4800 subscriptions, of which ~1000 are subscribed by a single user and ~500 by another. There are five channels/groups which have ~150 subscriptions each.

I kindly remind everyone not to abuse the public bot but should "fair use" it. Maintaining the public bot cost me some money and time each month, and can't afford abuse. If one does need to subscribe to such a lot of subscriptions, they should deploy their own bot. Alternatively, I may deploy a bot especially for you if you Patreon me.

If you use the public bot in your channel/group, consider mentioning the bot (or this project) in your channel/group bio (or pinned message) to let more people know about it. This is not mandatory, although it will become mandatory for channels/groups with too many subscriptions in the future.

Later I may enforce some limitations to reflect the fair-use policy.
Any contributor to code or localization (at least finishing 50 strings not relying on machine translation) would not be limited as long as they make a request.

Bot | Channel | Group | GitHub repo | Patreon

我想和你们分享一些数据。

共有约 750 个用户/频道/群组曾使用过 @RSStT_Bot ,其中约 300 个目前至少有一份订阅。这之中,约有一半是普通用户,一半是频道/群组。

共有约 4800 份订阅,其中约 1000 份由一名用户订阅,约 500 份由另一名用户订阅。有五个频道/群组各订阅了约 150 份。

我谨提醒各位不要滥用公共 bot,而应该“公平使用”它。维护公共 bot 每个月都要花费我一些金钱和时间,经受不起滥用。如果真的需要这么多订阅,应当部署自己的 bot。或者,如果你向我捐赠的话,我可以专门为你部署一个 bot。

如果你在频道/群组里使用公共 bot ,请考虑在频道/群组简介 (或置顶消息) 里提及这个 bot (或这个项目),来让更多人了解它。这不是强制的,尽管未来将成为对订阅数目过多的频道/群组的强制要求。

以后我可能会实施一些限制来反映公平使用政策。
任何代码或本地化贡献者 (至少不依赖机器翻译完成 50 个字符串) 只要提出请求,将不会受到限制。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
RSStT Bot Channel pinned «I would like to share some data with you. ~750 users/groups/channels have used @RSStT_Bot, of which ~300 have at least one subscription currently. About half of them are ordinary users and half are channels/groups. There are ~4800 subscriptions, of which…»
RSStT Bot Channel
I would like to share some data with you. ~750 users/groups/channels have used @RSStT_Bot, of which ~300 have at least one subscription currently. About half of them are ordinary users and half are channels/groups. There are ~4800 subscriptions, of which…
From now on, every user/channel/group using the public bot @RSStT_Bot can only subscribe to 150 feeds. Anyone who reaches the limit will have at least 7 days to reduce their number of subscriptions. After that, a forced subscription removal may occur.
If someone was found still abusing the public bot by creating multiple channels/groups to bypass the limit, they could probably lose their permission to use the public bot.

At present, the total number of subscriptions exceeds 5700. Only eight users/channels/groups have more than 150 subscriptions. They have over 3300 subscriptions in total.

If you use the public bot in your channel/group, consider mentioning the bot (or this project) in your channel/group bio (or pinned message) to let more people know about it. This is not mandatory, although it will become mandatory for channels/groups with too many subscriptions in the future.

I kindly remind everyone not to abuse the public bot but should "fair use" it. Maintaining the public bot cost me some money and time each month, and can't afford abuse. If one does need to subscribe to such a lot of subscriptions, they should deploy their own bot. Alternatively, I may deploy a bot especially for you if you Patreon me.
Any contributor to code or localization (at least finishing 50 strings not relying on machine translation) would not be limited as long as they make a request.

Bot | Channel | Group | GitHub repo | Patreon

从现在起,每个使用公共 bot @RSStT_bot 的用户/频道/群组只能拥有 150 份订阅。任何达到上限的人都将有至少 7 天的时间来减少订阅数量。之后,可能会发生强制删除订阅的情况。
如果发现有人通过创建多个频道/群组来绕过限制以继续滥用公共 bot ,他们可能会失去使用公共 bot 的许可。

目前,订阅总数超过 5700 份。只有八个用户/频道/群组的订阅数目超过 150。他们总共有超过 3300 份订阅。

如果你在频道/群组里使用公共 bot ,请考虑在频道/群组简介 (或置顶消息) 里提及这个 bot (或这个项目),来让更多人了解它。这不是强制的,尽管未来将成为对订阅数目过多的频道/群组的强制要求。

我谨提醒各位不要滥用公共 bot,而应该“公平使用”它。维护公共 bot 每个月都要花费我一些金钱和时间,经受不起滥用。如果真的需要这么多订阅,应当部署自己的 bot。或者,如果你向我捐赠的话,我可以专门为你部署一个 bot。
任何代码或本地化贡献者 (至少不依赖机器翻译完成 50 个字符串) 只要提出请求,将不会受到限制。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
RSStT Bot Channel pinned «From now on, every user/channel/group using the public bot @RSStT_Bot can only subscribe to 150 feeds. Anyone who reaches the limit will have at least 7 days to reduce their number of subscriptions. After that, a forced subscription removal may occur. If someone…»
Tips: why did the bot automatically leave my channel/group?

Once the bot finds itself lacking the permission to send messages (not granted or being blocked), it will immediately unsubscribe all subscriptions in this chat. Meanwhile, if this chat is a channel or group and the bot is still a member of it, it will leave the channel/group.
Make sure to grant the bot enough permission (sending messages) in channel/group.

Bot | Channel | Group | GitHub repo | Patreon

提示:为什么机器人自动退出了我的频道/群组?

一旦机器人发现自身缺乏发送消息的权限(未授予或被屏蔽),它将立即退订该聊天中的所有订阅。与此同时,如果该聊天是频道或群组且机器人仍是成员,它将退出该频道/群组。
确保在群组/频道中授予机器人足够的权限(发送消息)。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
This media is not supported in your browser
VIEW IN TELEGRAM
⭐️ 200 Stars, thank you!

If you love this bot but have not hit the star button on GitHub, do not hesitate 💫

Video made with stargazer.

Bot | Channel | Group | GitHub repo | Patreon

⭐️ 200 个 Star,感谢!

如果您对 bot 感到喜爱,却还没有在 GitHub 上点击过 Star,请不要犹豫 💫

视频使用 stargazer 制作。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
Support for 👩‍💻 Python 3.11

Released on 2022-10-24, Python 3.11 is 10-60% (on average 25%) faster than Python 3.10. I helped cryptg, an important dependency that makes RSStT communicate with Telegram DC more quickly on all supported platforms, gain its support for Python 3.11 and bumped some dependencies of RSStT to make them compatible with Python 3.11.
Now I've bumped Python to 3.11 on the latest official Docker image (note: the latest tag tracking the master branch is outdated, please migrate to the dev tag tracking the dev branch instead). It is the most recommended way to experience the performance optimization of Python 3.11 since still some dependencies lack prebuilt wheels for Python 3.11. In particular, building dependencies on Windows is significantly inconvenient, so please wait for their prebuilt wheels releasing :)

ADVANCE NOTICE OF BREAKING CHANGES
The next release, planned to be released next month, will be the last release that supports Python 3.7. After that, RSStT will require Python 3.8+. For now, it is strongly unrecommend to keep on Python 3.7 as three dependencies have dropped their support for Python 3.7, and you have to face feature imperfection if running RSStT on Python 3.7.

Bot | Channel | Group | GitHub repo | Patreon

现已支持 👩‍💻 Python 3.11

Python 3.11 于 2022-10-24 发布,比 Python 3.10 快 10-60% (平均 25%)。我帮助 cryptg (一个重要的依赖库,使 RSStT 能够在所有受支持的平台上更快地与 Telegram DC 通讯) 增加了对 Python 3.11 的支持,并升级了 RSStT 的一些依赖库使得它们与 Python 3.11 兼容

现在,我已经将官方 Docker 镜像的 Python 版本提升到 3.11 (注意:跟踪 master 分支的 latest tag 已经过时,请迁移到跟踪 dev 分支的 dev tag)。这是体验 Python 3.11 的性能优化的推荐方式,因为仍然有一些依赖库缺少 Python 3.11 的预构建 wheel。特别地,在 Windows 上构建依赖库非常不方便,因此请等候它们的预构建 wheel 发布 :)

对重大变更的预先通知
计划于下个月发布的下一个版本将是支持 Python 3.7 的最后一个版本。之后,RSStT 将要求 Python 3.8+。目前,强烈不建议继续使用 Python 3.7,因为有三个依赖库不再支持 Python 3.7,如果在 Python 3.7 上运行 RSStT,则不得不面对功能上的不完美。

官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
Please open Telegram to view this post
VIEW IN TELEGRAM
2024/11/18 16:20:00
Back to Top
HTML Embed Code: