<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Telegram on Kory&#39;s Blog</title>
    <link>https://blog.555586.xyz/tags/telegram/</link>
    <description>Recent content in Telegram on Kory&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 30 Sep 2026 19:40:56 +0000</lastBuildDate><atom:link href="https://blog.555586.xyz/tags/telegram/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cloudflare Workers 全自动部署 Telegram 双向私聊机器人实战（tg-private-chatbot）</title>
      <link>https://blog.555586.xyz/posts/cloudflare-workers-telegram-private-chatbot-deploy/</link>
      <pubDate>Wed, 30 Sep 2026 19:40:56 +0000</pubDate>
      
      <guid>https://blog.555586.xyz/posts/cloudflare-workers-telegram-private-chatbot-deploy/</guid>
      <description>Cloudflare Workers 全自动部署 Telegram 双向私聊机器人实战（tg-private-chatbot） 背景 想给 Telegram 加一条「访客 → 管理群」的双向私聊通道：陌生人私聊 Bot 先过人机验证，通过后自动在管理群（Forum 群）为每个用户开一个独立话题，管理员在话题里直接回复即送达对方。自带防广告拦截、封禁、结单等管理指令，全程零服务器成本。
选型：telegram_private_chatbot (v5.3) 仓库：jikssha/telegram_private_chatbot 架构：纯 Cloudflare Workers + KV，单文件 worker.js（约 57KB，ES module 导出） 核心特性：本地常识题库人机验证（0 外部依赖）、短 ID 按钮防 callback_data 截断、话题自动创建/回收、并发验证锁、safeGetJSON() 防 KV 数据损坏 关键绑定名（以代码实际扫描为准） 绑定 类型 说明 TOPIC_MAP KV Namespace 用户↔话题映射、验证状态、频控计数全存这里 BOT_TOKEN secret_text Bot 凭据，用 secret 类型防面板回读 SUPERGROUP_ID plain_text 管理群 ID，必须 -100 开头且为开启 Topics 的 Forum 群 ADMIN_IDS plain_text 可选管理员白名单，注入后跳过 getChatMember 缓存查询 坑：早期沟通口径是 TG_BOT_KV / ADMIN_CHAT_ID，与代码不一致。部署前先用 grep -oE &amp;quot;env\.</description>
    </item>
    
  </channel>
</rss>
