WhatsApp-ChatBot icon indicating copy to clipboard operation
WhatsApp-ChatBot copied to clipboard

I am having the issue of "list index out of range" help 😥

Open shreesha345 opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File ".\main.py", line 78, in <module> run.chat_bot() File ".\main.py", line 55, in chat_bot text_msg = self.get_msg() File ".\main.py", line 36, in get_msg text_msg = msg[self.last_massage].find_elment_by_class_name("_ccCW FqYAR i0jNr") IndexError: list index out of range

when I run this first It asks me the name of my friend whom I want to use this bot in WhatsApp and then it will open the page where I should scan the QRcode and then I pressed enter in my cmd and then when my friend sends a message it gives me this error 😥😥😥😥😥 Please help me please fast as possible Thank you!

shreesha345 avatar Aug 08 '21 09:08 shreesha345

This happens because whatsapp periodically changes the class name of the elements. You can implement this manually or wait until the weekend.

CleoMenezesJr avatar Aug 14 '21 05:08 CleoMenezesJr