I add a Meta template for WhatsApp, that use a url dimanyc button with parameter, i can pass parameter but i can not pass a different url defined in META template y tried many options, i checked serveral times Meta documentation but i can not make it work
— not working json
{
“messaging_product”: “whatsapp”,
“preview_url”: “true”,
“to”: “99995325395”,
“type”: “template”,
“template”: {
“name”: “test_template”,
“language”: {
“code”: “es”
},
“components”: [
{
“type”: “header”,
“parameters”: [
{
“type”: “document”,
“document”: {
“link”: “https://acmfiles.s3.amazonaws.com/Libros/AlgebraParaOlimpiadas.pdf”,
“filename”: “Mifilepdf”
}
}
]
},
{
“type”: “body”,
“parameters”: [
{
“type”: “text”,
“text”: “detail1”
},
{
“type”: “text”,
“text”: “detail2”
},
{
“type”: “text”,
“text”: “detail3”
}
]
},
{
“type”: “URL”,
“text”: “Shop Now”,
“url”: “https://www.luckyshrub.com/shop?promo={{1}}”,
“parameters”: [
{
“type”: “text”,
“text”: “descargas.html”
}
]
}
]
}
}
—–My working json —–
{
“messaging_product”: “whatsapp”,
“preview_url”: “true”,
“to”: “99985325395”,
“type”: “template”,
“template”: {
“name”: “template_test”,
“language”: {
“code”: “es”
},
“components”: [
{
“type”: “header”,
“parameters”: [
{
“type”: “document”,
“document”: {
“link”: “https://acmfiles.s3.amazonaws.com/Libros/AlgebraParaOlimpiadas.pdf”,
“filename”: “file.pdf”
}
}
]
},
{
“type”: “body”,
“parameters”: [
{
“type”: “text”,
“text”: “detail0”
},
{
“type”: “text”,
“text”: “detail1”
},
{
“type”: “text”,
“text”: “detail2”
}
]
},
{
“type”: “button”,
“sub_type”: “url”,
"index": "0",
"parameters": [
{
"type": "text",
"text": "1234"
}
]
}
]
}
}