[{"data":1,"prerenderedAt":122},["ShallowReactive",2],{"guide-article-\u002Fzh\u002Fguide\u002Fconnect-bot":3,"guide-neighbors-\u002Fzh\u002Fguide\u002Fconnect-bot":97},{"id":4,"title":5,"author":6,"body":7,"category":85,"description":86,"extension":87,"language":88,"meta":89,"navigation":90,"order":80,"path":91,"published":92,"readingMinutes":80,"seo":93,"stem":94,"takeaways":95,"updated":92,"__hash__":96},"guides\u002Fzh\u002Fguide\u002Fconnect-bot.md","连接机器人：轮询、Webhook 与 Chrome","TGDog",{"type":8,"value":9,"toc":75},"minimark",[10,15,19,22,25,28,31,34,43,46,59,62],[11,12,14],"h2",{"id":13},"你的机器人在本地连接","你的机器人，在本地连接。",[16,17,18],"p",{},"使用专用 Telegram 机器人，在 TGDog 插件中输入 Token；网站不会要求填写。TGDog 会向 Telegram 验证机器人，并检查是否已有 Webhook 接收更新。",[11,20,21],{"id":21},"解决更新接收冲突",[16,23,24],{},"Webhook 与轮询不能同时接收更新。只有在你明确确认切换接收方式后，TGDog 才会移除已有 Webhook。一个机器人应仅由一个接收客户端或 Chrome 用户配置使用。",[16,26,27],{},"Token 保存在 chrome.storage.local 中。这是浏览器本地存储，并非操作系统加密保险箱。",[11,29,30],{"id":30},"浏览器的运行条件",[16,32,33],{},"Chrome 需要保持运行，设备保持唤醒并联网。Telegram 待接收更新最多保留 24 小时；长时间离线可能造成消息缺口。TGDog 不读取 Telegram Web 的 DOM，也不扫描全部聊天历史。",[16,35,36],{},[37,38,42],"a",{"href":39,"rel":40},"https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi#getting-updates",[41],"nofollow","来源：Telegram 更新接收机制",[11,44,45],{"id":45},"核对你的配置",[47,48,49,53,56],"ul",{},[50,51,52],"li",{},"一个机器人应只使用一个更新接收端。",[50,54,55],{},"TGDog 需要 Chrome 保持运行、唤醒与联网。",[50,57,58],{},"Telegram 待接收更新最多保留 24 小时。",[11,60,61],{"id":61},"接下来读什么",[16,63,64,65,69,70,74],{},"如果是首次设置 TGDog，请按照",[37,66,68],{"href":67},"\u002Fzh\u002Fhow-to-use\u002F","完整使用教程","操作。需要了解其他主题时，可以返回",[37,71,73],{"href":72},"\u002Fzh\u002Fguide\u002F","指南文章库","。",{"title":76,"searchDepth":77,"depth":77,"links":78},"",3,[79,81,82,83,84],{"id":13,"depth":80,"text":14},2,{"id":21,"depth":80,"text":21},{"id":30,"depth":80,"text":30},{"id":45,"depth":80,"text":45},{"id":61,"depth":80,"text":61},"getting-started","了解 TGDog 如何接收更新，以及如何解决机器人连接冲突。","md","zh-CN",{},true,"\u002Fzh\u002Fguide\u002Fconnect-bot","2026-10-09",{"title":5,"description":86},"zh\u002Fguide\u002Fconnect-bot",[52,55,58],"-Py6jj5bTflUbAtBkuPJ8RNVOxjYJqeM8kOaYGsEihA",[98,102,103,106,110,114,118],{"path":99,"title":100,"order":101},"\u002Fzh\u002Fguide\u002Fcreate-bot","通过 BotFather 创建 Telegram 机器人",1,{"path":91,"title":5,"order":80},{"path":104,"title":105,"order":77},"\u002Fzh\u002Fguide\u002Fgroup-rules","超级群、管理员权限与白名单",{"path":107,"title":108,"order":109},"\u002Fzh\u002Fguide\u002Fspam-filter-rules","关键词、重复消息与防刷屏规则",4,{"path":111,"title":112,"order":113},"\u002Fzh\u002Fguide\u002Fmember-actions","观察、封禁与移除：各动作的实际影响",5,{"path":115,"title":116,"order":117},"\u002Fzh\u002Fguide\u002Fmessage-evidence","消息证据、本地存储与保留期限",6,{"path":119,"title":120,"order":121},"\u002Fzh\u002Fguide\u002Ftroubleshooting","排查更新缺失与 Telegram API 错误",7,1791598870647]