feat: whatsapp send, templates and media proxy
- MetaClient: text and template sends, approved templates with bounded paging, streamed media with a 100 MB cap. - Send endpoint: 24-hour window, template params and supported checks before Meta; pending then sent or failed with Meta's code and title. - Template sync per company and nightly at 03:30 KL; a failed fetch keeps existing rows. - Media proxy: 404 without access, 410 when Meta no longer holds the file. - Mock: Graph send, templates, media and bearer checks; /simulate/inbound and /simulate/status sign with the company secret. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
e6c3a488cf
commit
9f1b8de04d
13 files changed
+1570
-11
No files matched your search
@@ -121,5 +121,16 @@ services:
|
||||
mysql: {condition: service_healthy}
|
||||
whatsapp-mock:
|
||||
build: ./whatsapp-mock
|
||||
environment:
|
||||
WEBHOOK_URL: http://mobile-api/api/public/whatsapp/webhook
|
||||
WHATSAPP_COMPANIES: ${WHATSAPP_COMPANIES}
|
||||
WHATSAPP_INS_PHONE_NUMBER_ID: ${WHATSAPP_INS_PHONE_NUMBER_ID}
|
||||
WHATSAPP_INS_WABA_ID: ${WHATSAPP_INS_WABA_ID}
|
||||
WHATSAPP_INS_ACCESS_TOKEN: ${WHATSAPP_INS_ACCESS_TOKEN}
|
||||
WHATSAPP_INS_APP_SECRET: ${WHATSAPP_INS_APP_SECRET}
|
||||
WHATSAPP_CV_PHONE_NUMBER_ID: ${WHATSAPP_CV_PHONE_NUMBER_ID}
|
||||
WHATSAPP_CV_WABA_ID: ${WHATSAPP_CV_WABA_ID}
|
||||
WHATSAPP_CV_ACCESS_TOKEN: ${WHATSAPP_CV_ACCESS_TOKEN}
|
||||
WHATSAPP_CV_APP_SECRET: ${WHATSAPP_CV_APP_SECRET}
|
||||
volumes:
|
||||
mysql-data:
|
||||
Reference in new issue
Block a user