Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.07k stars 492 forks source link

Fixes #187 : new tokens #504

Closed zatnas closed 3 years ago

zatnas commented 3 years ago

As I have been trying out this fantastic project, I have bumped into an issue similar to #187. After a few bits of digging and rummaging the source code, logging everywhere. I tried looking up where this project was ported from.

And so, I began looking into sigalor/whatsapp-web-reveng. I tried looking up where the tokens were defined. Lo and behold, there are a few missing tokens.

So I took the liberty to add the tokens myself. After adding the tokens. Error is no more.

TL;DR Few missing tokens which was not updated from sigalor/whatsapp-web-reveng.

beshoo commented 3 years ago

@SchulteMK

beshoo commented 3 years ago

@SchulteMK Do you approve of this? UPDATE: Yes I do approve of this base on: https://github.com/sigalor/whatsapp-web-reveng/commit/49dada0222aaf25872c3875334fce9d2d019cfd5

beshoo commented 3 years ago

@zethnest I would like to know how did you spot this? Since I don't have any problem login in and scanning the QR!

zatnas commented 3 years ago

I joined the WhatsApp Beta. I don't know if this is the cause of the issue. Signing in is not a problem, but the error still shows. It bugs me. So I put logs everywhere to trace back where the error come from. I got to decoder.go under readString. Go forward and back from decoder.go and #187, got the idea that it was token. I tried checking upstream of project, which is sigalor/whatsapp-web-reveng. Tried looking into token.go and found some differences.