mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-26 07:41:35 +00:00
Use vendored whatsapp version (#1258)
This commit is contained in:
parent
2d98df6122
commit
25c82ddf02
@ -67,7 +67,6 @@ 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, 2080)
|
|
||||||
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