From 1aa662f7637c8cf929fd9296449e19c57fbb074a Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 28 Mar 2020 00:18:03 +0100 Subject: [PATCH] Update client version whatsapp. Fixes #1061 (#1062) See https://github.com/Rhymen/go-whatsapp/issues/305 --- bridge/whatsapp/whatsapp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go index 1a633024..8dfcb9cc 100644 --- a/bridge/whatsapp/whatsapp.go +++ b/bridge/whatsapp/whatsapp.go @@ -67,6 +67,7 @@ func (b *Bwhatsapp) Connect() error { // https://github.com/Rhymen/go-whatsapp#creating-a-connection b.Log.Debugln("Connecting to WhatsApp..") conn, err := whatsapp.NewConn(20 * time.Second) + conn.SetClientVersion(0, 4, 1307) if err != nil { return errors.New("failed to connect to WhatsApp: " + err.Error()) }