mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 797 forks source link

too much time to process new messages from contacts #673

Open dafner opened 5 years ago

dafner commented 5 years ago

Hello, I am using the function get_unread () to read the new messages that arrive in a list of approx. 1600 contacts of students of a school of a total of 3000 students. the Students consult data linked to their school activity.

It should be noted that the bot does not send unsolicited messages to students. All students register on the bot and accept receiving notifications.

I have noticed that as the list of contacts increases, the messages take longer to be read to be processed. the same situation happens when using the function on_message_received corresponding to the example new_messages_observer.py

The same situation occurs when sending messages. some students report that the answers arrive after several minutes of having sent a query.

Has anyone experienced anything similar to this situation or know of any way to speed up the process?

Is it possible to handle such a large number of messages with an application based on a whatsapp bot?

I have opted for whatsapp due to the massive use by the students. the students use all this type of messaging and it has been very difficult to impose the use of other bot based on FB Messenger.

Thank you very much for any help you can give me in order to try to solve this problem

Elintondm commented 3 years ago

I have the same problem.