-
-
Notifications
You must be signed in to change notification settings - Fork 29
Sending templates
Filippo Romani edited this page Sep 13, 2024
·
2 revisions
A Template messages can either be:
- Text template
- Media based template
- Interactive template
You can customize the template message by passing a dictionary of components.
IMPORTANT: components are also known as variable parameters (like {{0}} or {{1}}) which are used to include variables into a message.
You can find the available components in the documentation.
https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates
>>> messenger.send_template("hello_world", "255757xxxxxx", components=[], lang="en_US", sender=0,)lang is optional but required when sending templates in other languages.
If you find any issue in the docs, please open an issue/pr and report it