New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while restoring session #1
Comments
Is there any exception or failure printed on the screen? |
sepertinya masalah pada saat decrypt pesan masuk |
Gimana cara handle event new message setelah restore session? |
u need to restore the auth_state before u run the reactor. (e.g in the factory function) something like: def protocol_factory():
# Do any initialization here, such as reading session file
# to be supplied to the protocol/connection.
if path.exists("auth.json"):
with open("auth.json") as f:
print("Loading auth state from auth.json")
auth_state = AuthState.fromJson(json.loads(f.read()))
else:
auth_state = AuthState()
return MultiDeviceWhatsAppClient(authState=auth_state) |
I've been trying this for a long time, but still can't handle events |
Sorry in advance, I don't really understand python, but I'm trying to save the session and then restore it again
My code is like this
but it fails and can't restore session
The text was updated successfully, but these errors were encountered: