Please bump to version 2.2035.14
I don't know how to create a pull request.
Change file session.go
to this version
var waVersion = []int{2, 2035, 14}
Actually I manage to create a pull request.
I think you can use SetClientVersion to set WA Version.
I think you can use SetClientVersion to set WA Version.
I guess WA Version could be a ENV VAR too. Each new version someone must open a new PR just to change numbers (in most scenarios). Does it sounds OK?
I guess WA Version could be a ENV VAR too. Each new version someone must open a new PR just to change numbers (in most scenarios). Does it sounds OK?
Maybe on initialization of WA instead of an ENV var?
```
New minor detected 2.2039.9
What i did is the following to adubt each update
type version struct {
major int
minor int
patch int
}
wac, err = wa.NewConn()
v, err := wa.CheckCurrentServerVersion()
serverVersion := &version{major: v[0], minor: v[1], patch: v[2]}
if err != nil {
panic(err)
}
fmt.Printf("Server has version %d.%d.%d\n", serverVersion.major,
serverVersion.minor, serverVersion.patch)
wac.SetClientVersion(serverVersion.major, serverVersion.minor,
serverVersion.patch)
On Thu, Sep 24, 2020 at 2:49 PM Rafael Henrique notifications@github.com
wrote:
New minor detected 2.2039.9
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/437#issuecomment-698293889,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDLT26UL32LS2SFMIZPFFLSHMW4JANCNFSM4QPL6RZA
.
Most helpful comment
I guess WA Version could be a ENV VAR too. Each new version someone must open a new PR just to change numbers (in most scenarios). Does it sounds OK?