whatsapp_template
Allows the creation of messages from WhatApp Templates.
Last updated
Was this helpful?
Allows the creation of messages from WhatApp Templates.
Last updated
Was this helpful?
Was this helpful?
whatsapp_template(name=String, components=Array, language=String)
In order to create a WhatsApp Template, read this guide.
Messenger
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
String
Required.
Name of the template.
components
Array
Optional.
Array of components
objects containing the parameters of the message. Read more.
language
String
Optional.
Contains a language
object. Specifies the language the template may be rendered in. By default: "en_US".