[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71467":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},71467,"openwechat","eatmoreapple\u002Fopenwechat","eatmoreapple","golang微信SDK","",null,"Go",5473,1002,66,137,0,40,"Apache License 2.0",false,"master",true,[23,24,25,26,27,28,29],"bot","go","golang","robot","wechat","wechat-client","wechat-sdk","2026-06-12 02:02:52","# openwechat\n\n[![Go Doc](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002FeatMoreApple\u002Fopenwechat)](https:\u002F\u002Fgodoc.org\u002Fgithub.com\u002FeatMoreApple\u002Fopenwechat)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Featmoreapple\u002Fopenwechat.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat\u002Freleases)\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat)](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat)\n[![Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Featmoreapple\u002Fopenwechat.svg?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Featmoreapple\u002Fopenwechat.svg?style=flat-square)\n[![Forks](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002Featmoreapple\u002Fopenwechat.svg?style=flat-square)](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002Featmoreapple\u002Fopenwechat.svg?style=flat-square)\n[![Sourcegraph](https:\u002F\u002Fsourcegraph.com\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat\u002F-\u002Fbadge.svg)](https:\u002F\u002Fsourcegraph.com\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat?badge)\n\n> golang版个人微信号API, 突破登录限制，类似开发公众号一样，开发个人微信号\n\n\n微信机器人，利用微信号完成一些功能的定制化开发⭐\n\n* 模块简单易用，易于扩展\n* 支持定制化开发，如日志记录，自动回复\n* 突破登录限制&#x1F4E3;\n* 无需重复扫码登录\n* 支持多个微信号同时登陆\n\n### 安装\n\n```shell\ngo get -u github.com\u002Featmoreapple\u002Fopenwechat\n```\n\n### 快速开始\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com\u002Featmoreapple\u002Fopenwechat\"\n)\n\nfunc main() {\n\tbot := openwechat.DefaultBot(openwechat.Desktop) \u002F\u002F 桌面模式\n\n\t\u002F\u002F 注册消息处理函数\n\tbot.MessageHandler = func(msg *openwechat.Message) {\n\t\tif msg.IsText() && msg.Content == \"ping\" {\n\t\t\tmsg.ReplyText(\"pong\")\n\t\t}\n\t}\n\t\u002F\u002F 注册登陆二维码回调\n\tbot.UUIDCallback = openwechat.PrintlnQrcodeUrl\n\n\t\u002F\u002F 登陆\n\tif err := bot.Login(); err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t\u002F\u002F 获取登陆的用户\n\tself, err := bot.GetCurrentUser()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t\u002F\u002F 获取所有的好友\n\tfriends, err := self.Friends()\n\tfmt.Println(friends, err)\n\n\t\u002F\u002F 获取所有的群组\n\tgroups, err := self.Groups()\n\tfmt.Println(groups, err)\n\n\t\u002F\u002F 阻塞主goroutine, 直到发生异常或者用户主动退出\n\tbot.Block()\n}\n```\n\n### 支持功能\n\n* 消息回复、给指定对象（好友、群组）发送文本、图片、文件、emoji表情等消息\n* 热登陆（无需重复扫码登录）、自定义消息处理、文件下载、消息防撤回\n* 获取对象信息、设置好友备注、拉好友进群等\n* 更多功能请查看文档\n\n### 文档\n\n[点击查看](https:\u002F\u002Fopenwechat.readthedocs.io\u002Fzh\u002Flatest\u002F)\n\n### 项目主页\n\n[https:\u002F\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat](https:\u002F\u002Fgithub.com\u002Featmoreapple\u002Fopenwechat)\n\n## Thanks\n\n\u003Ca href=\"https:\u002F\u002Fwww.jetbrains.com\u002F?from=openwechat\">\u003Cimg src=\"https:\u002F\u002Faccount.jetbrains.com\u002Fstatic\u002Fimages\u002Fjetbrains-logo-inv.svg\" height=\"200\" alt=\"JetBrains\"\u002F>\u003C\u002Fa>\n\n** 如果喜欢的话，可以请作者吃包辣条。谢谢支持 :smile: **\n\n\u003Cimg width=\"210px\" height=\"210px\" src=\"https:\u002F\u002Fgithub.com\u002Featmoreapple\u002Featmoreapple\u002Fblob\u002Fmain\u002Fimg\u002Fwechat_pay.jpg\" align=\"left\">\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","openwechat 是一个用 Go 语言编写的微信 SDK，旨在帮助开发者利用个人微信号进行定制化开发。该项目提供了简单易用的模块和丰富的功能，包括但不限于消息自动回复、文件发送与接收、好友和群组管理等。特别地，它支持热登录（即无需重复扫码即可保持登录状态）以及多账号同时在线，极大地方便了需要频繁交互的应用场景。适用于需要通过微信实现自动化操作或客户服务的场合，如客服机器人、社群管理工具等。",2,"2026-06-11 03:37:52","high_star"]