Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Solution to Issue #41 #81

Closed ghostrider22 closed 2 years ago

ghostrider22 commented 2 years ago

Sir, as per the issue I have added the _is_logged_in() and _wait_util_logged_in() methods in session class. And also since you have added an improved version of send_message_at_time() in chatroom class, I have deleted the old duplicate copy of it.

NavpreetDevpuri commented 2 years ago

Facebook changed how they are storing sessions from the past few months that created problems without login detection, sometimes it started failing so I also changed the logic to detect if a user is logged in or not in the latest version https://github.com/Tithibots/tithiwa/blob/aa5c5a8d8e60609f6267a00e241083a24a84598c/tithiwa/session.py#L27 I am not sure if it will work

so you can try it in the latest way and test it a few times by running the code

ghostrider22 commented 2 years ago

Sir, I have amended the code, and it is working.