mirror of https://github.com/caronc/apprise
Updated Notify_whatsapp (markdown)
parent
c7ec0192d0
commit
052b049441
|
@ -4,7 +4,32 @@
|
|||
* **Message Format**: Text
|
||||
* **Message Limit**: 1024 Characters per message
|
||||
|
||||
### Account Setup
|
||||
To send WhatsApp messages via Apprise, you must first configure your Meta WhatsApp Cloud API account. Follow these steps:
|
||||
|
||||
1. **Create a Meta Developer Account**
|
||||
Go to [Meta for Developers](https://developers.facebook.com/) and log in or create an account.
|
||||
1. **Create a WhatsApp App**
|
||||
From the Meta Developer Dashboard, create a new App and add **WhatsApp** as a product.
|
||||
1. **Generate a Permanent Access Token**
|
||||
- Navigate to your app's **WhatsApp > API Setup** section.
|
||||
- Select or create a **System User**, then assign a role and generate a **permanent access token** with `whatsapp_business_messaging` permissions.
|
||||
- This token is used in the Apprise `token` field.
|
||||
1. **Locate Your `From Phone Number ID`**
|
||||
This is not your actual phone number. It’s a numeric ID assigned by Meta to the sender number.
|
||||
You can find it in your WhatsApp App > **API Setup** section under **Phone Numbers**.
|
||||
1. **Register Your Recipient Number(s)**
|
||||
- During sandbox testing, you must verify any phone number you wish to message through Meta’s interface.
|
||||
- For production, your business must be verified and have the appropriate messaging tier.
|
||||
1. **(Optional) Create and Approve Message Templates**
|
||||
- Navigate to **WhatsApp > Message Templates**.
|
||||
- Create a template (e.g., `hello_world`) and await approval.
|
||||
- Templates allow structured messaging with variables (e.g., `{{1}}`, `{{2}}`) and can be used with Apprise's `template:` prefix. This is explained further below.
|
||||
|
||||
Once everything is in place, you're ready to send WhatsApp messages through Apprise.
|
||||
|
||||
### Syntax
|
||||
|
||||
Valid syntax is as follows:
|
||||
* `whatsapp://{token}@{from_phone_id}/{targets}`
|
||||
* `whatsapp://{template}:{token}@{from_phone_id}/{targets}`
|
||||
|
|
Loading…
Reference in New Issue