{"id":15509905,"url":"https://github.com/atorber/weebot","last_synced_at":"2025-07-03T00:05:02.292Z","repository":{"id":245440934,"uuid":"814045338","full_name":"atorber/WeeBot","owner":"atorber","description":"WeeBot提供最基本的微信消息收发功能，帮助你实现简单的自动化操作，支持微信3.9.10.27","archived":false,"fork":false,"pushed_at":"2024-06-21T12:52:51.000Z","size":45020,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T11:23:50.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atorber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-12T08:34:18.000Z","updated_at":"2025-01-02T18:00:39.000Z","dependencies_parsed_at":"2024-06-22T05:41:46.279Z","dependency_job_id":null,"html_url":"https://github.com/atorber/WeeBot","commit_stats":null,"previous_names":["atorber/weebot"],"tags_count":0,"template":false,"template_full_name":"atorber/frida-agent","purl":"pkg:github/atorber/WeeBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2FWeeBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2FWeeBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2FWeeBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2FWeeBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atorber","download_url":"https://codeload.github.com/atorber/WeeBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2FWeeBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234941,"owners_count":23434917,"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":"2024-10-02T09:44:50.146Z","updated_at":"2025-07-03T00:05:02.166Z","avatar_url":"https://github.com/atorber.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeeBot\n\nWeeBot提供最基本的消息收发功能，帮助你实现简单的自动化操作\n\n## 下载和启动\n\n1. 下载程序包 [WeeBot-3.9.10.27-0.6.0.zip](https://www.yuque.com/attachments/yuque/0/2024/zip/250308/1718969080072-81e3b9cc-d712-4005-9a38-f1fbb976616a.zip?_lake_card=%7B%22src%22%3A%22https%3A%2F%2Fwww.yuque.com%2Fattachments%2Fyuque%2F0%2F2024%2Fzip%2F250308%2F1718969080072-81e3b9cc-d712-4005-9a38-f1fbb976616a.zip%22%2C%22name%22%3A%22WeeBot-3.9.10.27-0.6.0.zip%22%2C%22size%22%3A45898878%2C%22ext%22%3A%22zip%22%2C%22source%22%3A%22%22%2C%22status%22%3A%22done%22%2C%22download%22%3Atrue%2C%22taskId%22%3A%22u515ede7c-14f2-4e3a-93b9-55e8708dc30%22%2C%22taskType%22%3A%22upload%22%2C%22type%22%3A%22application%2Fx-zip-compressed%22%2C%22__spacing%22%3A%22both%22%2C%22mode%22%3A%22title%22%2C%22id%22%3A%22u71375e1b%22%2C%22margin%22%3A%7B%22top%22%3Atrue%2C%22bottom%22%3Atrue%7D%2C%22card%22%3A%22file%22%7D)\n2. 登录客户端，确认当前版本为3.9.10.27（[下载客户端](https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.10.27/WeChatSetup-3.9.10.27.exe)）\n3. 解压缩后启动WeeBot程序，点击【Start】启动服务，点击【Stop】取消程序挂接\n\n## 接收消息\n\n协议：websoket\n\n连接地址：ws://127.0.0.1:19099\n\n使用任意编程语言启动一个ws client即可实时接收消息推送\n接收消息示例：\n\n```json\n{\n  \"id\": \"1264199305822102857\",\n  \"filename\": \"\",\n  \"text\": \"Jim\",\n  \"timestamp\": 1718391525,\n  \"type\": 1,\n  \"talkerId\": \"luyc\",\n  \"roomId\": \"21341182572@chatroom\",\n  \"mentionIds\": [],\n  \"listenerId\": \"\",\n  \"isSelf\": false\n}\n```\n\n## WeeBot API说明\n\n协议：http\n\nAPI地址： http://127.0.0.1:19088\n\n同时支持GET/POST的接口，在使用POST方法请求时body设置为{}\n\n### 获取联系人列表 GET /api/contacts\n\n```json\n{\n    \"code\": 1,\n    \"data\": [\n        {\n            \"id\": \"wwwang99326\",\n            \"gender\": 1,\n            \"type\": 3,\n            \"name\": \"踏雪御苍穹\",\n            \"friend\": true,\n            \"star\": false,\n            \"coworker\": false,\n            \"address\": null,\n            \"weixin\": \"cya89\",\n            \"corporation\": \"\",\n            \"title\": \"\",\n            \"description\": \"\",\n            \"phone\": []\n        },\n        {\n            \"id\": \"wxid_sonjrdopx77221\",\n            \"gender\": 1,\n            \"type\": 3,\n            \"name\": \"一类化学危险品汽车修理\",\n            \"friend\": true,\n            \"star\": false,\n            \"coworker\": false,\n            \"address\": null,\n            \"weixin\": \"Z3381108383\",\n            \"corporation\": \"\",\n            \"title\": \"\",\n            \"description\": \"\",\n            \"phone\": []\n        }],\n    \"msg\": \"success\"\n}\n```\n\n### 获取群列表 GET /api/rooms\n\n```json\n{\n    \"code\": 1,\n    \"data\": [\n        {\n            \"id\": \"20800000065@chatroom\",\n            \"gender\": 1,\n            \"type\": 2,\n            \"name\": \"羽毛球俱乐部\",\n            \"friend\": true,\n            \"star\": false,\n            \"coworker\": false,\n            \"address\": null,\n            \"weixin\": \"\",\n            \"corporation\": \"\",\n            \"title\": \"\",\n            \"description\": \"\",\n            \"phone\": []\n        },\n        {\n            \"id\": \"2037110006@chatroom\",\n            \"gender\": 1,\n            \"type\": 2,\n            \"name\": \"联盟🏸\",\n            \"friend\": true,\n            \"star\": false,\n            \"coworker\": false,\n            \"address\": null,\n            \"weixin\": \"\",\n            \"corporation\": \"\",\n            \"title\": \"\",\n            \"description\": \"\",\n            \"phone\": []\n        }],\n    \"msg\": \"success\"\n}\n```\n\n### 获取登录用户信息 GET /api/contacts/self\n\n```json\n{\n    \"code\": 1,\n    \"data\": {\n        \"id\": \"wxid_xxx0o1t51l3f57221\",\n        \"gender\": 1,\n        \"name\": \"大师\",\n        \"coworker\": true,\n        \"avatar\": \"https://wx.qlogo.cn/mmhead/ver_1/2FFoLE7eRpAOFHUwYkLyicQwrhsDHZU1Nmp0IcDKJcmRNxlTgXlzrvmAYJDQ32NibNRBRTxfGyK09UyUgPibjAYibc7xJWtJvPoRfwAfRQdvgG8/0\",\n        \"address\": \"\",\n        \"alias\": \"\",\n        \"city\": \"Haidian\",\n        \"province\": \"Beijing\",\n        \"weixin\": \"ledongmao\",\n        \"corporation\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"phone\": [\n            \"15313358151\"\n        ]\n    },\n    \"msg\": \"success\"\n}\n```\n\n### 发送文本消息 POST /api/message/text\n\n```json\n{\"contactId\": \"filehelper\",\"text\": \"1112224\"}\n```\n\n```json\n{\n  \"code\": 1,\n  \"data\": 1,\n  \"msg\": \"success\"\n}\n```\n\n## 兼容wxhelper API说明\n\n兼容wxhelper接口，服务端口、路径、请求参数与wxhelper一致，**响应参数中的data有差异**\n\n协议：http\n\nAPI地址： http://127.0.0.1:19088\n同时支持GET/POST的接口，在使用POST方法请求时body设置为{}\n\n### 获取登录用户信息 POST /api/userInfo\n\n入参：\n\n```javascript\n{}\n```\n\n响应：\n\n```javascript\n{\n    \"code\": 1,\n    \"data\": {\n        \"account\": \"xxx\",\n        \"city\": \"Zhengzhou\",\n        \"country\": \"CN\",\n        \"currentDataPath\": \"C:\\\\WeChat Files\\\\wxid_xxx\\\\\",\n        \"dataSavePath\": \"C:\\\\wechatDir\\\\WeChat Files\\\\\",\n        \"dbKey\": \"965715e30e474da09250cb5aa047e3940ffa1c8f767c4263b132bb512933db49\",\n        \"headImage\": \"https://wx.qlogo.cn/mmhead/ver_1/MiblV0loY0GILewQ4u2121\",\n        \"mobile\": \"13949175447\",\n        \"name\": \"xxx\",\n        \"province\": \"Henan\",\n        \"signature\": \"xxx\",\n        \"wxid\": \"wxid_22222\"\n    },\n    \"msg\": \"success\"\n}\n```\n\n### 获取联系人和群列表 POST /api/getContactList\n\n入参：\n\n```json\n{}\n```\n\n响应：\n\n```json\n{\n    \"code\": 1,\n    \"data\": [\n        {\n            \"customAccount\": \"\",\n            \"encryptName\": \"v3_020b3826fd03010000000000e04128fddf4d90000000501ea9a3dba12f95f6b60a0536a1adb6b40fc4086288f46c0b89e6c4eb8062bb1661b4b6fbab708dc4f89d543d7ade135b2be74c14b9cfe3accef377b9@stranger\",\n            \"nickname\": \"文件传输助手\",\n            \"pinyin\": \"WJCSZS\",\n            \"pinyinAll\": \"wenjianchuanshuzhushou\",\n            \"remark\": \"\",\n            \"remark_pinyin\": \"\",\n            \"remark_pinyin_all\": \"\",\n            \"label_ids\": \"\",\n            \"reserved1\": 1,\n            \"reserved2\": 1,\n            \"type\": 3,\n            \"verifyFlag\": 0,\n            \"wxid\": \"filehelper\"\n        }\n    ],\n    \"msg\": \"success\"\n}\n```\n\n### 发送文本消息 POST /api/sendTextMsg\n\n入参：\n\n```typescript\n{\"wxid\": \"filehelper\",\"msg\": \"1112224\"}\n```\n\n响应：\n\n```json\n{\n    \"code\": 1,\n    \"data\": 1,\n    \"msg\": \"success\"\n}\n```\n\n## 兼容wechat-bot API说明\n\n兼容wechat-bot接口，服务端口、路径、请求参数与wechat-bot一致，**响应参数中的data有差异**\n\n协议：http\n\nAPI地址： http://127.0.0.1:19088\n\n同时支持GET/POST的接口，在使用POST方法请求时body设置为{}\n\n### 获取联系人和群列表 POST **/api/getcontactlist**\n\n```json\n{\n  \"id\":\"123456\",\n  \"type\":5000,\n  \"roomid\":\"null\",\n  \"wxid\":\"null\",\n  \"content\":\"null\",\n  \"nickname\":\"null\",\n  \"ext\":\"null\"\n}\n```\n\n```json\n{\n    \"code\": 1,\n    \"data\": [\n        {\n            \"customAccount\": \"\",\n            \"encryptName\": \"v3_020b3826fd03010000000000e04128fddf4d90000000501ea9a3dba12f95f6b60a0536a1adb6b40fc4086288f46c0b89e6c4eb8062bb1661b4b6fbab708dc4f89d543d7ade135b2be74c14b9cfe3accef377b9@stranger\",\n            \"nickname\": \"文件传输助手\",\n            \"pinyin\": \"WJCSZS\",\n            \"pinyinAll\": \"wenjianchuanshuzhushou\",\n            \"remark\": \"\",\n            \"remark_pinyin\": \"\",\n            \"remark_pinyin_all\": \"\",\n            \"label_ids\": \"\",\n            \"reserved1\": 1,\n            \"reserved2\": 1,\n            \"type\": 3,\n            \"verifyFlag\": 0,\n            \"wxid\": \"filehelper\"\n        }\n    ],\n    \"msg\": \"success\"\n}\n```\n\n### 发送文本消息 POST **/api/sendtxtmsg**\n\n```json\n{\n  \"id\":\"123456\",\n  \"type\":555,\n  \"wxid\":\"23023281066@chatroom\",\n  \"content\":\"hello word\",\n  \"nickname\":\"null\",\n  \"ext\":\"null\"\n}\n```\n\n```json\n{\n    \"code\": 1,\n    \"data\": 1,\n    \"msg\": \"success\"\n}\n```\n\n## 更新日志\n\nv0.6.0\n\n- 新增wechat-bot兼容接口API\n\nv0.5.3\n\n- 优化启动逻辑，程序开启时自动启动，可手动停止\n- 优化按钮操作显示，增加按钮激活、禁用状态\n- 优化图片解析逻辑，增加延时保证缩略图下载\n\nv0.5.0\n\n- 新增接收图片（缩略图）消息\n- 新增接收文件消息\n\nv0.4.0\n\n- 新增获取群列表接口/api/rooms\n- 修复无法正常退出问题\n- 修复联系人列表信息不全问题\n- 优化响应数据格式\n\nv0.1.0\n\n- 初始化版本，支持获取联系人列表、获取当前用户信息、发送文本消息、接收消息\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fweebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatorber%2Fweebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fweebot/lists"}