- Add comprehensive documentation in botbook/ with 12 chapters - Add botapp/ Tauri desktop application - Add botdevice/ IoT device support - Add botlib/ shared library crate - Add botmodels/ Python ML models service - Add botplugin/ browser extension - Add botserver/ reorganized server code - Add bottemplates/ bot templates - Add bottest/ integration tests - Add botui/ web UI server - Add CI/CD workflows in .forgejo/workflows/ - Add AGENTS.md and PROD.md documentation - Add dependency management scripts (DEPENDENCIES.sh/ps1) - Remove legacy src/ structure and migrations - Clean up temporary and backup files
20 lines
607 B
QBasic
20 lines
607 B
QBasic
PARAM phone AS PHONE LIKE "122233333333" DESCRIPTION "WhatsApp phone number with country code"
|
|
PARAM template AS STRING LIKE "newsletter-zap.txt" DESCRIPTION "Template file name to send"
|
|
PARAM variables AS OBJECT LIKE "{name: 'John'}" DESCRIPTION "Template variables for personalization" OPTIONAL
|
|
|
|
DESCRIPTION "Send a WhatsApp template message to a phone number"
|
|
|
|
SEND TEMPLATE TO phone, template, variables
|
|
|
|
WITH log
|
|
timestamp = NOW()
|
|
phoneNumber = phone
|
|
templateFile = template
|
|
status = "sent"
|
|
END WITH
|
|
|
|
SAVE "whatsapp_log.csv", log
|
|
|
|
TALK "WhatsApp message sent to " + phone
|
|
|
|
RETURN phone
|