【文件属性】:
文件名称:openwechat:Golang的微信客户端
文件大小:23KB
文件格式:ZIP
更新时间:2021-04-12 22:09:28
golang robot wechat Go
openwechat
golang版个人微信号API, 类似开发公众号一样,开发个人微信号
使用前提
1、你的微信号必须能够在成功登录
2、golang版本大于等于1.11
安装
go get
go get github.com/eatMoreApple/openwechat
go mod
require github.com/eatMoreApple/openwechat
快速开始
登录微信
package main
import (
"fmt"
"github.com/eatMoreApple/openwechat"
)
func main() {
messageHandler := func(msg *openwechat.Message) {
fmt.Println(msg)
}
bot := openwechat.DefaultBot()
// 注
【文件预览】:
openwechat-main
----message.go(7KB)
----stroage.go(21B)
----bot_test.go(1KB)
----parser.go(607B)
----global.go(2KB)
----relations.go(4KB)
----response.go(1KB)
----LICENSE(11KB)
----client.go(13KB)
----bot.go(5KB)
----.gitignore(275B)
----README.md(3KB)
----caller.go(7KB)
----user.go(9KB)
----items.go(4KB)
----go.mod(51B)