<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Bot - 标签 - Vindrin</title><link>https://vindrin.top/zh-cn/tags/bot/</link><description>Bot - 标签 - Vindrin</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>vindrin@outlook.com (Vindrin)</managingEditor><webMaster>vindrin@outlook.com (Vindrin)</webMaster><lastBuildDate>Fri, 10 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://vindrin.top/zh-cn/tags/bot/" rel="self" type="application/rss+xml"/><item><title>RSS 阅读 Bot</title><link>https://vindrin.top/zh-cn/project/rss-reader-bot/</link><pubDate>Fri, 10 Apr 2026 00:00:00 +0000</pubDate><author>vindrin@outlook.com (Vindrin)</author><guid>https://vindrin.top/zh-cn/project/rss-reader-bot/</guid><description><![CDATA[<h1 id="rss-阅读-bot">RSS 阅读 Bot</h1>
<p>一个 Telegram 机器人，自动拉取你订阅的 RSS 源，每天发送一条摘要消息。</p>
<h2 id="背景">背景</h2>
<p>我关注超过 15 个博客和新闻源，每天手动逐个查看太累了。一个 bot，每天一条消息，搞定。</p>
<h2 id="架构">架构</h2>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="复制到剪贴板"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">RSS 源 → 解析器 → 去重 → 摘要格式化 → Telegram Bot API</span></span></code></pre></div></div>
<h2 id="核心功能">核心功能</h2>
<ul>
<li>通过 bot 命令添加/删除订阅（<code>/add</code>、<code>/remove</code>、<code>/list</code>）</li>
<li>定时每日推送摘要</li>
<li>标记文章为已读</li>
<li>关键词过滤</li>
</ul>
<h2 id="部署">部署</h2>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="复制到剪贴板"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install feedparser python-telegram-bot apscheduler
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">TELEGRAM_TOKEN</span><span class="o">=</span>your_token_here
</span></span><span class="line"><span class="cl">python bot.py</span></span></code></pre></div></div>
<h2 id="状态">状态</h2>
<p><code>v1.0.0</code> — 已稳定运行 2 个月，无故障。</p>]]></description></item></channel></rss>