mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-19 09:32:35 +01:00
See https://github.com/Rhymen/go-whatsapp/issues/305
This commit is contained in:
parent
0b86b88de7
commit
1aa662f763
@ -67,6 +67,7 @@ func (b *Bwhatsapp) Connect() error {
|
|||||||
// https://github.com/Rhymen/go-whatsapp#creating-a-connection
|
// https://github.com/Rhymen/go-whatsapp#creating-a-connection
|
||||||
b.Log.Debugln("Connecting to WhatsApp..")
|
b.Log.Debugln("Connecting to WhatsApp..")
|
||||||
conn, err := whatsapp.NewConn(20 * time.Second)
|
conn, err := whatsapp.NewConn(20 * time.Second)
|
||||||
|
conn.SetClientVersion(0, 4, 1307)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("failed to connect to WhatsApp: " + err.Error())
|
return errors.New("failed to connect to WhatsApp: " + err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user