LevwTech / wa-gpt

💬 Chat, Create Stickers & Images, Send Voice Notes, Files, and More! 🎨 Start now for free! ✨
https://whatsapp-assistant.com
2 stars 1 forks source link

stickers & images generated multiple times sometimes #13

Closed LevwTech closed 8 months ago

LevwTech commented 8 months ago

Maybe meta's webhook checks if the 200 response is not received within x seconds it retries, if that is the case then you will need to respond with 200 and push the function to a queue to be handled asynchronously

LevwTech commented 8 months ago

Maybe meta's webhook checks if the 200 response is not received within x seconds it retries, if that is the case then you will need to respond with 200 and push the function to a queue to be handled asynchronously

As expected it was due the above, fixed by creating another webhook that responds to meta with 200, then asynchronously calls the main handler to handle the message. This is to avoid creating a SQS.