header
, body
, footer
and button
. At the point of sending messages, the template object you see in the code acts as a way to pass the dynamic values within these components.
header
can accomodate text
or media
(images, video, documents) content or location
. body
can accomodate text
content. button
can support dynamic values in a url
button or to specify a developer-defined payload which will be returned when the WhatsApp user clicks on the quick_reply
button. footer
cannot have any dynamic variables.
You can start sending templated location messages using our APIs. Follow the instructions below.
connected
state and template is in approved
state, you can send your first message.
send_whatsapp.py
and paste into it this code.