whatsapp api: delay in sending the message

83 Views Asked by At

I have created a message template and it will be approved. When I send a message

curl -i -X POST \
  https://graph.facebook.com/v18.0/210679105452960/messages \
  -H 'Authorization: Bearer token' \
  -H 'Content-Type: application/json' \
  -d '{ "messaging_product": "whatsapp", "to": "380630000000", "type": "template", "template": { "name": "sms_code_en", "language": { "code": "en" }, "components": [{"type": "body", "parameters": [{"type": "text", "text": "123123"}]}] } }'

it comes after 30-40 seconds. But when I send the message from the example

curl -i -X POST \
  https://graph.facebook.com/v18.0/210679105452960/messages \
  -H 'Authorization: Bearer token' \
  -H 'Content-Type: application/json' \
  -d '{ "messaging_product": "whatsapp", "to": "380630000000", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }'

It comes very quickly, a few seconds. Perhaps someone has encountered and can tell what is the matter?

1

There are 1 best solutions below

1
Totti Lima On

This problem has been around since July 2023 and to this day they have not resolved this problem.