Whatsapp Business Api- Message template are going after 30mins
https://graph.facebook.com/v17.0/{{Phone-Number-ID}}/messages
Headers contains Authentication token
passing json body:
{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "{{Recipient-Phone-Number}}", "type": "template", "template": { "name": "ticket_confirmation", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://link.png" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "xyz" }, { "type": "text", "text": "event name" }, { "type": "text", "text": "2" }, { "type": "text", "text": "ticketname" }, { "type": "date_time", "date_time": { "fallback_value": "May 10, 2023" } }, { "type": "text", "text": "18:30 - 23:30" }, { "type": "text", "text": "location" }, { "type": "currency", "currency": { "fallback_value": "value", "code": "INR", "amount_1000": 2100630 } } ] } ] } }
I am getting this in response
"messages": [ { "id": "wamid.HBgMOTE3MDQyMjY2ODExFQIAERgSQkQ0MDMyRTYyNTdBNUJGM0M0AA==" } ]
I am hitting this API to send my message templates to the user who have purchased tickets on my platform but the message are going after 30mins(before i was getting the message withing secs.