{"id":36693601,"url":"https://github.com/xiaofeige/wechat-work-bot","last_synced_at":"2026-01-12T11:24:48.576Z","repository":{"id":57549225,"uuid":"304372758","full_name":"xiaofeige/wechat-work-bot","owner":"xiaofeige","description":"企业微信群聊机器人基础库","archived":false,"fork":false,"pushed_at":"2021-06-19T06:28:37.000Z","size":50,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T02:41:21.647Z","etag":null,"topics":["bot","wechat","wechat-work","weixin"],"latest_commit_sha":null,"homepage":"","language":"Go","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/xiaofeige.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":"2020-10-15T15:39:25.000Z","updated_at":"2023-06-09T03:51:37.000Z","dependencies_parsed_at":"2022-08-27T00:32:24.414Z","dependency_job_id":null,"html_url":"https://github.com/xiaofeige/wechat-work-bot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/xiaofeige/wechat-work-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofeige%2Fwechat-work-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofeige%2Fwechat-work-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofeige%2Fwechat-work-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofeige%2Fwechat-work-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaofeige","download_url":"https://codeload.github.com/xiaofeige/wechat-work-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofeige%2Fwechat-work-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","wechat","wechat-work","weixin"],"created_at":"2026-01-12T11:24:47.999Z","updated_at":"2026-01-12T11:24:48.571Z","avatar_url":"https://github.com/xiaofeige.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat-work-bot\n企业微信群聊机器人库\n\n## 功能特性\n无需再去看微信文档实现对应的接口，加解密也都帮你实现了。import之后，只需要实现一个handler处理各种消息，然后注册到机器人中即可。\n支持注册多个机器人，通过robot id区分。也就是申请的机器人回调中的key的值。\n\n## How to use\n```\ngo get github.com/xiaofeige/wechat-work-bot\n```\n\n## example\n参考`example`目录下的实现 \n```\n// create handler which implement the wx callback msg handler\ntype ExampleHandler struct{\n    *BaseHandler\n}\n\n// 覆盖默认的事件响应函数\nfunc (h *ExampleHandler)OnMsgRecv(ctx context.Context, msg *CallBackReq) (rsp *CallBackRsp, err error){\n    return \u0026CallbackRsp{}, nil\n}\n\n```\n\n添加handler到机器人\n```\nh := \u0026ExampleHandler{}\nrobot, err := wechat_work_bot.NewWxWorkRobot(conf.RobotConf)\nif err != nil{\n    fmt.Println(\"error\")\n    return\n}\nrobot.AddHandler(h)\nrobot.Start()\n```\n\n## 如何添砖加瓦\n希望我们的合作模式是 fork\u0026pull-request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaofeige%2Fwechat-work-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaofeige%2Fwechat-work-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaofeige%2Fwechat-work-bot/lists"}