whatsapp_template
Allows the creation of messages from WhatApp Templates.
Platform | Supported |
---|---|
Messenger | |
WhatsApp | |
Telegram |
@reply.whatsapp_template("hello_world")
user = User.first
user.notification.whatsapp_template(
"sample_issue_resolution",
[
{
type: :body,
parameters: [
{
type: :text,
text: "Martín"
}
]
}
]
)
user.send
Name | Description |
---|---|
name
String | Required. Name of the template. |
components
Array | |
language
String | Optional.
Contains a language object. Specifies the language the template may be rendered in. By default: "en_US". |
Last modified 8mo ago