{"id":27969811,"url":"https://github.com/cmliu/cf-workers-tgbot","last_synced_at":"2025-05-07T21:54:44.688Z","repository":{"id":274297357,"uuid":"922445863","full_name":"cmliu/CF-Workers-TGbot","owner":"cmliu","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-26T11:16:12.000Z","size":10,"stargazers_count":17,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T21:54:41.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://api.tg.090227.xyz","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T08:20:56.000Z","updated_at":"2025-05-04T06:34:18.000Z","dependencies_parsed_at":"2025-01-26T12:20:29.122Z","dependency_job_id":"b2fd3ed6-cfe2-4ec0-82a6-51ea2bffb8ef","html_url":"https://github.com/cmliu/CF-Workers-TGbot","commit_stats":null,"previous_names":["cmliu/cf-workers-tgbot"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-TGbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-TGbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-TGbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-TGbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmliu","download_url":"https://codeload.github.com/cmliu/CF-Workers-TGbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961846,"owners_count":21832193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T21:54:44.160Z","updated_at":"2025-05-07T21:54:44.666Z","avatar_url":"https://github.com/cmliu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CF-Workers-TGbot\r\n\r\n## 🛠️ 部署到 Cloudflare Workers\r\n1. 在 Cloudflare Worker 控制台中创建一个新的 Worker。\r\n2. 将 [_worker.js](https://github.com/cmliu/CF-Workers-TGbot/blob/main/_worker.js)  的内容粘贴到 Worker 编辑器中。\r\n\r\n## 📦 部署到 Cloudflare Pages\r\n1. 在 Cloudflare Pages 上创建新项目，指定此仓库地址。\r\n2. 部署后，通过 Pages 提供的域名访问即可（如设置域名 CNAME 到 Pages）。\r\n\r\n## ⚠️ 使用说明\r\n- 本示例假设域名为：`api.tg.090227.xyz`\r\n- 使用反代 TG API 示例：  \r\n  `https://api.tg.090227.xyz/bot${BotToken}/sendMessage?chat_id=${ChatID}\u0026parse_mode=HTML\u0026text=test`\r\n- 如已在环境变量中设置 **TGTOKEN**，可直接调用内置通知机器人：  \r\n  `https://api.tg.090227.xyz/sendMessage?chat_id=${ChatID}\u0026parse_mode=HTML\u0026text=test`\r\n- 首次部署后，需访问以下链接对进行通知机器人初始化：  \r\n  `https://api.tg.090227.xyz/${TGTOKEN}`\r\n\r\n## 📋 变量说明\r\n| 变量名 | 示例 | 备注 | \r\n|-|-|-|\r\n| TGTOKEN | `6894123456:XXXXXXXXXX0qExVsBPUhHDAbXXXXXqWXgBA` | TG机器人token | \r\n\r\n# 🙏 致谢\r\nGPT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcf-workers-tgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmliu%2Fcf-workers-tgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcf-workers-tgbot/lists"}