Closed ilovefreesw closed 6 months ago
You are reacting to all kinds of messages, sent, delivered, etc.
Should react only to specific messages, text, image... etc.
Should use the handlers, ex.
@wa.on_raw_update()
def raw_update_handler(_: WhatsApp, update: dict):
print(update)
@wa.on_message()
def message_handler(_: WhatsApp, msg: Message):
print(msg)
Describe the bug
It sends the same message multiple times and then hit the limit. No matter if I send a reply or a template message.
To Reproduce
Create the sample script:
Send a message from another number and then see the unusual behavior.
Expected behavior
It should only send 1 message.
pywa version
1.16.2
python version
3.10.8
os
Windows 11
Additional context
Here's what I get in the terminal: