tulir / whatsmeow

Go library for the WhatsApp web multidevice API

Home Page:https://go.mau.fi/whatsmeow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cli.SubscribeNewsletterLiveUpdates undefined

Evil2000 opened this issue · comments

While building mdtest:

me@host:~/whatsmeow/mdtest$ go version
go version go1.21.3 linux/amd64

me@host:~/whatsmeow/mdtest$ go build
go: downloading github.com/mdp/qrterminal/v3 v3.0.0
go: downloading google.golang.org/protobuf v1.31.0
go: downloading github.com/mattn/go-sqlite3 v1.14.17
go: downloading go.mau.fi/libsignal v0.1.0
go: downloading go.mau.fi/util v0.2.0
go: downloading golang.org/x/crypto v0.14.0
go: downloading rsc.io/qr v0.2.0
go: downloading filippo.io/edwards25519 v1.0.0
go: downloading github.com/gorilla/websocket v1.5.0
# go.mau.fi/whatsmeow/mdtest
./main.go:379:19: cli.SubscribeNewsletterLiveUpdates undefined (type *whatsmeow.Client has no field or method SubscribeNewsletterLiveUpdates)
./main.go:424:10: assignment mismatch: 1 variable but cli.CreateNewsletter returns 2 values
./main.go:424:56: too many arguments in call to cli.CreateNewsletter
	have (string, string)
	want (whatsmeow.CreateNewsletterParams)

Is there some kind of stable release to use?

Regards.

The sample test code mdtest is outdated, as the functions changed in the last commit. You can read the godocs to see the right parameters until the test is updated.