puppet-padchat-patch
What's this for
This is a temporary solution for the current -106
issue which blocks new users to login with wechaty-puppet-padchat
Please notice:
-
You need to upgrade your
wechaty-puppet-padcaht
tov0.17.5
or later to use this patch -
The second parameter is name(or called profile in the past), you need to change it to the one same as your bot
-
Currently you need to restart your application when the auth data get picked, so wechaty could pick up the auth data and use it to login to wechat.
reset
does not work for this case now, if you reset wechaty when thefinish
event emitted, you will still get-106
error. -
With this sulotion, when the user haven't logged in with wechaty before, there could be 3 times qrcode scan, which is not a great experience, but this is just a temporary solution, we are still working on fixing the issue and make everything back to before. If this solution doesn't work for you, please wait paitiently, we will publish new fix later
How to use
Please take a look at /test/dev-test.ts
file for a complete example.
/** * Hook the -106 failure status here, try to get auth data from separate server */process.on'unhandledRejection',