Briuor / wbm

wbm is an unofficial API to send bulk messages in whatsapp.
MIT License
205 stars 65 forks source link

Sessions #4

Closed zhd4n closed 4 years ago

zhd4n commented 4 years ago

It would be nice to be able to log in through QR once and then reuse the session. A similar solution is used in pedroslopez/whatsapp-web.js

It’s also good to be able to use multiple sessions at the same time.

Is this possible now?

Briuor commented 4 years ago

It would be nice to be able to log in through QR once and then reuse the session. A similar solution is used in [pedroslopez/whatsapp-web.js]

Reuse user's session is a very nice feature to be implemented, wbm uses puppeteer library that already provide easy ways to store user's session, for sure it will be implemented in a future release(feel free to contribute if you want).

It’s also good to be able to use multiple sessions at the same time. Is this possible now?

There are two cases:

Case 1 - Multiple sessions of the same whatsapp account

It isn't possible because whatsapp don't allow opening more than one session at the same account in https://web.whatsapp.com.

Case 2 - Multiple sessions of different whatsapp accounts

It's possible, but not now, wbm instantiate a browser in background and do all stuff in the https://web.whatsapp.com page, so to use multiple different sessions at the same time will be necessary to open an anonymous browser instance for each session(open several browsers in background have a processing cost).

Briuor commented 4 years ago

The session feature was implemented in the version v1.1.9 (the way to use the library changed a little bit in this version too), now the user must scan the QR code once.

darkane188 commented 4 years ago

La función de sesión se implementó en la versión v1.1.9 (la forma de usar la biblioteca también cambió un poco en esta versión), ahora el usuario debe escanear el código QR una vez.

hay un bug al recuperar la sesion despues de leer el qr code solo aparece autenticando image

Briuor commented 4 years ago

Thank you man, it's happening because whatsapp web changed some html tags, i'm gonna fix it!

Briuor commented 4 years ago

Fixed!