Skip to content

Commit

Permalink
Update client version whatsapp. Fixes #1061 (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim authored Mar 27, 2020
1 parent 0b86b88 commit 1aa662f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridge/whatsapp/whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 1aa662f

Please sign in to comment.