{"id":13823730,"url":"https://github.com/AnotiaWang/AntiChannelSpammersBot","last_synced_at":"2025-07-08T18:30:55.483Z","repository":{"id":40633773,"uuid":"436484397","full_name":"AnotiaWang/AntiChannelSpammersBot","owner":"AnotiaWang","description":"A Telegram bot that can delete messages from users appearing as channels, also messages from anonymous admins and the linked channels.","archived":false,"fork":false,"pushed_at":"2022-10-15T17:05:51.000Z","size":104,"stargazers_count":61,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-13T08:36:46.426Z","etag":null,"topics":["bot","nodejs","telegram"],"latest_commit_sha":null,"homepage":"https://t.me/AntiChannelSpammersBot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnotiaWang.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}},"created_at":"2021-12-09T04:41:12.000Z","updated_at":"2024-08-21T23:20:45.000Z","dependencies_parsed_at":"2023-01-19T22:19:27.655Z","dependency_job_id":null,"html_url":"https://github.com/AnotiaWang/AntiChannelSpammersBot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotiaWang%2FAntiChannelSpammersBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotiaWang%2FAntiChannelSpammersBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotiaWang%2FAntiChannelSpammersBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotiaWang%2FAntiChannelSpammersBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnotiaWang","download_url":"https://codeload.github.com/AnotiaWang/AntiChannelSpammersBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225453356,"owners_count":17476710,"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":["bot","nodejs","telegram"],"created_at":"2024-08-04T09:00:42.315Z","updated_at":"2024-11-20T01:30:45.809Z","avatar_url":"https://github.com/AnotiaWang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# \u003cb\u003e\u003cp align=\"center\"\u003e反频道马甲 Bot\u003c/p\u003e\u003c/b\u003e\r\n\r\n\u003cp align=\"center\"\u003e清理群内成员使用频道马甲发送的消息。\u003c/p\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n \u003cimg src=\"https://img.shields.io/github/stars/AnotiaWang/AntiChannelSpammersBot?color=%2326A5E4\u0026logo=GitHub\" alt=\"项目收藏数\"\u003e\r\n\u003cimg src=\"https://shields.io/endpoint?url=https://acs.bot.ataw.top/stats\" alt=\"统计信息\"\u003e\r\n\u003c/div\u003e\r\n\r\n## 特性\r\n\r\n- [x] 清理群内成员使用频道马甲发送的消息\r\n\r\n- [x] 清理匿名群管发送的消息\r\n\r\n- [x] 清理来自关联频道的消息\r\n\r\n- [x] 解除频道消息在群内的置顶\r\n\r\n- [x] 支持频道马甲白名单\r\n\r\n- [x] 支持封禁 / 解封频道马甲\r\n\r\n## 使用方法\r\n\r\n### 1. 部署至 Heroku\r\n\r\n\u003e Heroku 将于 2022/11/28 [下线](https://blog.heroku.com/next-chapter)其免费计划，请自寻其它方式部署。\r\n\r\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/AnotiaWang/AntiChannelSpammersBot)\r\n\r\n### 2. 手动部署\r\n\r\n请先安装 Node.js 和 NPM 。\r\n\r\n1. Clone 本仓库\r\n\r\n2. 复制 `.env.example` 并重命名为 `.env`\r\n\r\n3. 编辑 `.env`：\r\n\r\n    - `token` : 从 BotFather 拿到的 token\r\n\r\n    - `admin` : 你的 UID (Unique Identifier，可使用第三方客户端或 @GetIDsBot 获取)，如果不需要统计功能，可以不配置\r\n\r\n    - `webhookUrl` : WebHook 地址。填写完整 URL，**行尾须包含 `/`**（ 如 `https://bot.blabla.com:443/bot` ）。如不使用则留空。\r\n\r\n    - `webhookPort`: HTTP 服务器监听的反代端口，如不使用则留空\r\n\r\n   \u003e 如使用 WebHook ，支持生成[统计 badge](https://shields.io)，默认的数据接口在 `[域名]/stats` ，样式见代码。图片地址使用 `https://shields.io/endpoint?url=[域名]/stats` 即可。\r\n\r\n4. 运行：\r\n\r\n   ```bash\r\n   npm install \u0026\u0026 npm start\r\n   ```\r\n\r\n## Demo: [@AntiChannelSpammersBot](https://t.me/AntiChannelSpammersBot)\r\n\r\n## License\r\n\r\nGPLv3\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnotiaWang%2FAntiChannelSpammersBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnotiaWang%2FAntiChannelSpammersBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnotiaWang%2FAntiChannelSpammersBot/lists"}