{"id":23149641,"url":"https://github.com/assimon/captcha-bot","last_synced_at":"2026-03-13T18:09:27.311Z","repository":{"id":40325475,"uuid":"410755049","full_name":"assimon/captcha-bot","owner":"assimon","description":"用于Telegram 加群验证机器人","archived":false,"fork":false,"pushed_at":"2024-05-27T03:48:31.000Z","size":1185,"stargazers_count":215,"open_issues_count":0,"forks_count":51,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T09:06:46.190Z","etag":null,"topics":["bot","captcha-bot","telegram","telegram-bot","telegram-captcha"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assimon.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":"2021-09-27T05:39:50.000Z","updated_at":"2025-03-31T03:23:42.000Z","dependencies_parsed_at":"2024-06-18T23:13:18.519Z","dependency_job_id":"1edfa0ca-1355-4f21-9983-93f211e3dd59","html_url":"https://github.com/assimon/captcha-bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assimon%2Fcaptcha-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assimon%2Fcaptcha-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assimon%2Fcaptcha-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assimon%2Fcaptcha-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assimon","download_url":"https://codeload.github.com/assimon/captcha-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027411,"owners_count":21035594,"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","captcha-bot","telegram","telegram-bot","telegram-captcha"],"created_at":"2024-12-17T18:10:22.062Z","updated_at":"2025-10-29T23:13:05.049Z","avatar_url":"https://github.com/assimon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## captcha-bot\n\n用于[Telegram](https://telegram.org/) 加群验证机器人，采用golang编写，支持全平台编译运行。\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue\" alt=\"license MIT\"\u003e\u003c/a\u003e\n\u003ca href=\"https://golang.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Golang-1.17-red\" alt=\"Go version 1.17\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tucnak/telebot\"\u003e\u003cimg src=\"https://img.shields.io/badge/Telebot Framework-v3-lightgrey\" alt=\"telebot v3\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/assimon/captcha-bot/releases/tag/1.0.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/version-1.0.0-green\" alt=\"version 1.0.0\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## 项目初衷\n`Telegram`(简称：小飞机)，全球知名的非常方便且优雅的匿名IM工具(比微信更伟大的产品)。    \n但由于该软件的匿名性，导致该软件上各种加群推广机器人满天飞，我们无法无时无刻的判断加入群组的“某个人”是否为推广机器人。   \n还好`Telegram`为我们提供了非常强大的`Api`，我们可以利用这些Api开发出自动验证的机器人。   \n\n如果你是`Telegram`的群组管理员，你可以直接使用本项目部署私有化的验证机器人。     \n如果你是`开发者`，你可以利用本项目熟悉`Go语言`与`Telegram`的交互式开发，以便后续利用`Api`开发出自己的机器人！      \n\n文档参考：   \nTelegram Api文档：[Telegram Api](https://core.telegram.org/bots/api)      \n机器人开发框架：[Telebot](https://github.com/tucnak/telebot)\n\n## 使用方式\n\n### 一、自行编译\n此安装方式多用于开发者，需电脑上安装`go语言`环境。   \n[go语言官网](https://golang.org/)    \n\n下载：\n```shell\n# 下载项目\ngit clone https://github.com/assimon/captcha-bot \u0026\u0026 cd captcha-bot\n```\n编译：\n```shell\n# 编译\ngo build -o  captcha-bot\n# 给予执行权限\nchmod +x ./captcha-bot\n```\n配置：\n```shell\ncp .example.config.toml config.toml\n```\n执行：\n```shell\n# 调试启动\n./captcha-bot\n# nohup \nnohup ./captcha-bot \u003e\u003e run.log 2\u003e\u00261 \u0026\n```\n\n### 二、下载已经编译好的二进制程序\n此方式可以直接使用，用于服务器生产环境。\n进入打包好的版本列表，下载程序：[https://github.com/assimon/captcha-bot/releases](https://github.com/assimon/captcha-bot/releases)    \n配置：  \n```shell\ncp .example.config.toml config.toml\n```\n运行：     \n```shell\n# linux\n# 调试启动\n./captcha-bot\n\n# windows\ncaptcha-bot.exe\n```\n\n### 三、机器人命令\n```\n/ping       #存活检测，机器人若正常将返回\"pong\"\n# 广告相关\n/add_ad     #新增一条广告，格式：广告标题|跳转链接|到期时间(带时分秒)|权重(倒序，值越大越靠前)，例如：/add_ad 📢广告招租|https://google.com|2099-01-01 00:00:00|100\n/all_ad     #查看所有广告\n/del_ad     #删除一条广告，例如：/del_ad 1(删除id为1的广告)\n```\n\n### 四、敏感词词库使用\n在项目`dict`文件夹提供了一些敏感词库，用于机器人反垃圾功能。由于不可描述原因词库不能`明文`放置于项目仓库。      \n如需使用，请使用`openssl`命令进行解密，且文件名必须以`dec_`开头，否则无法正常加载！           \n例如：     \n```shell\nopenssl enc -d -aes256 -pass pass:captcha-bot -in dict/enc_dc1.txt -out dict/dec_dc1.txt\n```\n\n## 预览\n![禁言.png](https://i.loli.net/2021/09/27/dZQSFKmI23nbXhN.png)\n![验证.png](https://i.loli.net/2021/09/27/rEUYVmgt2ve87TL.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassimon%2Fcaptcha-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassimon%2Fcaptcha-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassimon%2Fcaptcha-bot/lists"}