open-wa / wa-automate-docker

💬 🤖 The easiest way to turn your WhatsApp into an API. Be sure to 🌟 this repository for updates!
106 stars 31 forks source link

Use case for WA_SESSION_DATA #29

Closed BHWarrior closed 2 years ago

BHWarrior commented 2 years ago

I tried to put base64 string data into WA_SESSION_DATA in my docker-compose.yml. I copied those string from session.data.json which was generated automatically after connecting to my WhatsApp account.

Then, I stop my docker container. Started it again, then it still asked me to scan qrcode again for new session.

Did I miss any steps? Do we need to scan qrcode again even if we have put those base64 string already?

smashah commented 2 years ago

@benyhirmansyah most likely you have invalid session data or have been forced onto multi device mode.

set

WA_MULTI_DEVICE: true