daveebbelaar / python-whatsapp-bot

Build AI WhatsApp Bots with Pure Python
https://www.datalumina.com
MIT License
516 stars 328 forks source link

open AI whatsapp re-send message automatically #7

Open jdevsan opened 5 months ago

jdevsan commented 5 months ago

Hi im facing some issues with randomness I dont know what it is, but sometimes messages are resending, open ai assitante send a message with no user interaction in th e chat..

kaiofreitas commented 5 months ago

Same here

jdevsan commented 3 months ago

@kaiofreitas did u solve it?

GuidoLorenzetti commented 1 week ago

Hi, did anyone find a solution for this? I´m over my head trying to solve this and currently didn´t have much progress

CeadeS commented 1 week ago

WhatsApp messages are not synchronous. If a WhatsApp message is not received properly, it is resent by meta automatically. Make sure you send meta a 200 every time you push a message into a thread successfully. Otherwise, the message is resent meta. This also happens for status updates of the messages. You would use a more mature what’s app api implementation for python that handles that. In guess this project is not meant to be a productive WhatsApp api implementation but an nice example for beginners.