TGINSIGHT CHAT
RSStT Bot Channel
@RSStT_Channel
TechnologiaRSS-to-Telegram-Bot, A Telegram RSS bot that cares about your reading experience. Bot: @RSStT_Bot GitHub repo: git.io/RSStT Group/群聊: @RSStT_Group 爱发电: afdian.net/@RongrongQAQ Patreon: patreon.com/rongbot Ko-fi: ko-fi.com/rongbot
Scripta recentia
Nota: #master · 4 scripta
Editum Dec 5
#Releasev1.6.1 #master 分支更新 这是一个仓促的发布。它将依赖 telethon 升级到了最新版本。请立即升级到这个版本以免由于依赖过时而无法登录。 机器人正在 multiuser 分支上被活跃开发,但尚未被合并回来,以免过早引入重大变更。如果你想要尝试多用户版本,这里有一个公开的 demo @RSStT_Bot 。 新特性: * .env 文件支持 (仅在手动执行时支持,不支持 docker) * 反转义受到 HTML 转义的文章标题 * 当文章内容不含有文本时,将标题作为文章的内容 变更: * 一些小的错误修复 * 引入了一些变通解决方案以免频繁受到泛洪控制 * 引入了一些依赖以加速 HTTP 请求 官方 bot 实例 | 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持 #Releasev1.6.1 #master branch updated This is a rushed release. It bumps the dependency telethon to the latest version. Please upgrade to this version immediately to avoid being unable to login due to the outdated dependency. The bot is currently being actively developed on the multiuser branch, but has not been merged back yet to avoid introducing breaking changes too early. If you would like to try the multi-user version, there is a public demo @RSStT_Bot . New features: * .env file support (only for manual execution, not for docker) * Unescape HTML-escaped post title * Use the title as the content of a post if the latter is of no text Changes: * Minor bugfixes * Introduce some workarounds to avoid being flood-controlled frequently * Introduce some deps to speedup HTTP requests Bot | Channel | Group | GitHub repo | Patreon
Editum Oct 8
#Releasev1.6.0 #master 分支更新 重大变更: * 与 Telegram 交互的库由使用 HTTP Bot API 的同步库python-telegram-bot改为使用 MTProto Bot API 的异步库telethon |- 这引入了 API key 的需求,程序已经内置了 7 个公开的 API key,通常情况下不应无法登入。如果无法登入,可以自己申请 API key (详见docker-compose.yml.sample中的说明) 新功能: * 由于 Telegram bot 库的替换,bot 可以直接连接到 bot 所属的 DC,不需绕经 HTTP Bot API;也不需轮询获得消息更新,它在接收及发送消息方面都更为迅速,资源占用也更低; 即使 HTTP Bot API 宕机,bot 也可以正常工作 (详见 Advantages of MTProto over Bot API 和 MTProto vs HTTP Bot API) * 支持更多元素的解析 |- <iframe> |- <video><source><source>...</video> |- <code> |- <pre> * 支持 OPML 导入导出 * 支持超长文章通过 Telegraph 发送 (必须先设置 TELEGRAPH_TOKEN 环境变量) * 支持使用 redis 作为数据库 |- 注意:这是为了在 railway.app 上部署而设计的变通解决方案,未来很可能丢弃 * 支持 arm64 (docker 构建) * 支持在由于 Telegram 服务器不稳定或 Telegram 服务器与媒体服务器之间的网络连接不稳定而导致 Telegram 无法发出带有媒体的消息时,使用媒体反代服务器重新发送。 * 支持日志着色 * docker-compose.yml.sample * 用于检查 bot 版本的 /version 命令 * 如果设置了全局代理 (环境变量 SOCKS_PROXY/HTTP_PROXY),会使用它们 变更: * 将 feed 监视任务分配到每分钟,而不是每次 DELAY 一次性全部执行 |- 因此,环境变量 DELAY 将只能被设置为 60~3600 |- 注意:环境变量 DELAY 未来将被弃用 * 使用 guid/id 来辨识一个 post,而不是 link * 简化了 /list 的输出 * 升级为 Python 3.9 (docker 构建) * 次要的修复 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
Editum Oct 8
#Releasev1.6.0 #master branch updated BREAKING CHANGE: * Telegram bot library has been migrated from python-telegram-bot (which uses HTTP Bot API and is synchronous) to telethon (which uses MTProto Bot API and is asynchronous) |- However, to use MTProto Bot API, an API key is needed. The bot has 7 built-in API keys (collected from the Internet) and in most cases it should not be unable to log in. But if so, please obtain your own API key ( seedocker-compose.yml.samplefor details) New features: * Thanks to the migration of Telegram bot library, bot can now connect to its DC directly, need not detour through the HTTP Bot API and keep polling to get new messages. Which makes the bot receive and reply messages more rapidly and lightweightedly. Even if the HTTP Bot API is down, the bot can still run unaffectedly. (more details: Advantages of MTProto over Bot API , MTProto vs HTTP Bot API) * Support parsing more HTML elements |- <iframe> |- <video><source><source>...</video> |- <code> |- <pre> * Support OPML importing and exporting * Support sending too-long post via Telegraph (env var TELEGRAPH_TOKEN must be set) * Support redis as db |- Note: This is a workaround for deploying the bot on railway.app, will be dropped in the future * Support arm64 (docker build) * Support resending a message using a media relay server if Telegram cannot send a message with media due to Telegram server instability or network instability between media server and Telegram server * Support colored logging * docker-compose.yml.sample * /version command to check bot version * Automatically use proxy if global proxy (env var SOCKS_PROXY/HTTP_PROXY) set Changes: * Assign feed monitoring tasks to every minute, instead of executing all at once each DELAY |- Thus, env var DELAY can only be 60~3600 |- Note: env var DELAY will be deprecated in the future * Recognize a post by its guid/id instead of link * Simplify the output of /list * Bump Python to 3.9 (docker build) * Minor fixes Official channel | Official group | GitHub repo | Patreon
Editum Sep 10
#master 分支更新 合入 dev 分支更新内容,包含大量更新,tag 1.5。 更新概要: 注意:由于未来可能加入多用户功能而导致数据库及配置文件变更,请时常备份订阅列表(目前仅可通过 `/test` 备份) * 文章解码完全重写,更加稳定及更加忠实还原原有格式 |- 针对大量短动态类 RSS 源进行了测试 |- 即使是长文 RSS 源,也可以正确处理 * 支持 GIF * 消息多于 10 张媒体时支持分条发送 * 支持视频与图片任意混合于同一条消息 * 超限媒体不再直接丢弃,而是作为链接附加到消息末尾 * 自动判断 RSS 源的标题是否为自动填充,并自动选择是否略去标题 * 自动显示作者名 * 自动替换 emoji shortcodes 为 emoji * 自动替换满足某些特征的表情图片为 emoji 或其描述文本 * 因 telegram api 不稳定而无法发出图片时,自动更换图床服务器重发 |- 仅限微博图源,非微博图源自动将所有媒体转为链接附加到消息末尾 * 改进文本长度计数方式,不再因为链接 url 过长而导致消息被提前分割 * 更改 user-agent,规避某些网站屏蔽 requests UA 的问题 * 改进的日志记录 加入频道 | 加入群组 | GitHub 仓库 | 捐赠支持
Hashtags