netflie / whatsapp-cloud-api

The first PHP API to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform
https://netflie.es/portfolio/whatsapp-business-cloud-api-php-sdk/
MIT License
428 stars 151 forks source link

Send Text Message Api Not delivering Message to destination-phone-number #163

Closed shoyshai closed 3 months ago

shoyshai commented 6 months ago

Dear Team., I am using the first basic example of $whatsapp_cloud_api->sendTextMessage('destination-phone-number', 'Hey there! I\'m using WhatsApp Cloud API. Visit https://www.netflie.es'); API is called successfully and the resposne received from API is [body:protected] => {"messaging_product":"whatsapp","contacts":[{"input":"9975840786","wa_id":"919975840786"}],"messages":[{"id":"wamid.HBgMOTE5OTc1ODQwNzg2FQIAERgSMEYxMjc4QzZGMkQzRTY4RDI3AA=="}]} but it does not shows the [message_status] => accepted , and message is not delivered to destination mobile. Please help as i just started exploring whatsapp api Screenshot_7

aalbarca commented 3 months ago

The first message must be a TEMPLATE message. Once the user answers then you can start sending other types of messages.

This is a WhatsApp requirement.