Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code go wechaty, join our Wechaty Go Developers’ Home.
Scan now, because other Wechaty Go developers want to talk with you too! (secret code: go wechaty)
Usage
package main
import (
"fmt"
"github.com/wechaty/go-wechaty/wechaty"
"github.com/wechaty/go-wechaty/wechaty-puppet/schemas"
"github.com/wechaty/go-wechaty/wechaty/user"
)
func main() {
wechaty.NewWechaty().
OnScan(func(context *wechaty.Context, qrCode string, status schemas.ScanStatus, data string) {
fmt.Printf("Scan QR Code to login: %s\nhttps://wechaty.github.io/qrcode/%s\n", status, qrCode)
}).
OnLogin(func(context *wechaty.Context, user *user.ContactSelf) {
fmt.Printf("User %s logined\n", user)
}).
OnMessage(func(context *wechaty.Context, message *user.Message) {
fmt.Printf("Message: %s\n", message)
}).DaemonStart()
}
Requirements
Go 1.18+
Install
# go get wechaty
go get github.com/wechaty/go-wechaty
Development
make install
make test
QA
wechaty-puppet-service: WECHATY_PUPPET_SERVICE_TOKEN not found ?
go-wechaty is the go language implementation of wechaty (TypeScript). Puppet is required to start wechaty, but it is currently known that puppets are written in TypeScript language. In order to enable go-wechaty to use these puppets, we can use wechaty-gateway to convert puppets into grpc service, let go-wechaty connect to the grpc service, go-wechaty -> wechaty-gateway -> puppet, document: https://wechaty.js.org/docs/puppet-services/diy/
go-wechaty
Connecting Chatbots
Wechaty is a RPA SDK for Wechat Individual Account that can help you create a chatbot in 6 lines of Go.
Voice of the Developers
See more at Wiki:Voice Of Developer
Join Us
Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code go wechaty, join our Wechaty Go Developers’ Home.
Scan now, because other Wechaty Go developers want to talk with you too! (secret code: go wechaty)
Usage
Requirements
Install
Development
QA
See Also
Golang for Node.js Developer
History
master
v0.4 (Jun 19, 2020)
Go Wechaty Scala Wechaty BETA Released!
Read more from our Multi-language Wechaty Beta Release event from our blog:
v0.1 (Apr 03 2020)
src/wechatytowechatyexamples/ding-dong-bot.gov0.0.1 (Mar 12, 2020)
Related Projects
Badge
Contributors
Creators
Copyright & License
Thanks