📝 Add env WHATSAPP_CLOUD_API_URL to possible change https://gr… (#1170)
refs #1117 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Dynamically construct API URLs for WhatsApp features using environment variables for improved reliability and configurability. - Updated `sendWhatsAppMessage` function to use `env.WHATSAPP_CLOUD_API_URL` for URL construction, allowing for more dynamic configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
This commit is contained in:
committed by
Baptiste Arnaud
parent
ef05b71869
commit
47af9a9a59
@ -238,12 +238,13 @@ In order to be able to test your bot on WhatsApp from the Preview drawer, you ne
|
||||
|
||||
</Accordion>
|
||||
|
||||
| Parameter | Default | Description |
|
||||
| ------------------------------------- | ------- | ------------------------------------------------------- |
|
||||
| META_SYSTEM_USER_TOKEN | | The system user token used to send WhatsApp messages |
|
||||
| WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID | | The phone number ID from which the message will be sent |
|
||||
| WHATSAPP_PREVIEW_TEMPLATE_NAME | | The preview start template message name |
|
||||
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en | The preview start template message name |
|
||||
| Parameter | Default | Description |
|
||||
| ------------------------------------- | -------------------------- | ------------------------------------------------------- |
|
||||
| META_SYSTEM_USER_TOKEN | | The system user token used to send WhatsApp messages |
|
||||
| WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID | | The phone number ID from which the message will be sent |
|
||||
| WHATSAPP_PREVIEW_TEMPLATE_NAME | | The preview start template message name |
|
||||
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en | The preview start template message name |
|
||||
| WHATSAPP_CLOUD_API_URL | https://graph.facebook.com | The WhatsApp Cloud API base URL |
|
||||
|
||||
## Others
|
||||
|
||||
|
Reference in New Issue
Block a user