From 91ad0232f0c85cf84a98454279eadc901f5228f7 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 10 Mar 2026 17:19:59 -0300 Subject: [PATCH] update submodules --- botserver | 2 +- sim_wa.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100755 sim_wa.sh diff --git a/botserver b/botserver index 786d404..1053c86 160000 --- a/botserver +++ b/botserver @@ -1 +1 @@ -Subproject commit 786d404938331197c7edc4c719b661d9dae6a26f +Subproject commit 1053c86a73bd4b238d6436d3bcf342b53f43d68c diff --git a/sim_wa.sh b/sim_wa.sh new file mode 100755 index 0000000..83a6186 --- /dev/null +++ b/sim_wa.sh @@ -0,0 +1,43 @@ +#!/bin/bash +curl -X POST http://localhost:8080/webhook/whatsapp/default \ +-H "Content-Type: application/json" \ +-H "X-Hub-Signature-256: sha256=dummy" \ +-d '{ + "object": "whatsapp_business_account", + "entry": [ + { + "id": "1234567890", + "changes": [ + { + "value": { + "messaging_product": "whatsapp", + "metadata": { + "display_phone_number": "552140402160", + "phone_number_id": "323250907549153" + }, + "contacts": [ + { + "profile": { + "name": "Test User" + }, + "wa_id": "5511999999999" + } + ], + "messages": [ + { + "from": "5511999999999", + "id": "wamid.simulated_1", + "timestamp": "1625688536", + "text": { + "body": "cristo" + }, + "type": "text" + } + ] + }, + "field": "messages" + } + ] + } + ] +}'