https://github.com/binatify/wechat
A new WeChat robot with golang
https://github.com/binatify/wechat
Last synced: about 1 year ago
JSON representation
A new WeChat robot with golang
- Host: GitHub
- URL: https://github.com/binatify/wechat
- Owner: binatify
- Created: 2018-01-08T02:39:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T11:38:16.000Z (about 7 years ago)
- Last Synced: 2025-01-12T23:09:04.345Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wechat
A new WeChat robot with golang.
### Usage
New client with message handler example:
```
package main
import (
"github.com/binatify/wechat/client"
"github.com/binatify/wechat/config"
"github.com/sirupsen/logrus"
"os"
)
func main() {
logrus.SetOutput(os.Stdout)
logger := logrus.WithField("reqID", "reqID")
c := client.New(&config.Config{
Duration: 6,
}, logger).Start()
c.Listen(func(msg interface{}) {
content := msg.(map[string]interface{})["Content"].(string)
logger.Println(content)
})
}
```

### Features
- [x] Auto login with qrcode.
- [x] Message linsten.
- [ ] Messge send.