|
|
@ -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())
|
|
|
|
}
|
|
|
|
}
|
|
|
|