lc-at / kyros

Python wrapper for WhatsApp Web API websocket communication (based on https://github.com/sigalor/whatsapp-web-reveng)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to save session to file and then use method restore_session

ramonck opened this issue · comments

Hi,

I was wondering how I can save the session after login to a file and then use the restore_session method.

Thanks.

Save the session by using kyros_client.session.save_to_file(filename). To restore it, you can use restore_session method with a Session instance (which you can initiate from a file by using its from_file static method) as an argument.