Hello I am trying to get Whatsapp chat-api to work in php,
using the exampleRegister.php. I am trying to get the password from the server but it keeps giving me an error
=> fail [reason] => old_version )
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\src\Registration.php:316 Stack trace: #0 C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\examples\exampleRegister.php(41): Registration->codeRequest('sms') #1 {main} thrown in C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\src\Registration.php on line 316
I already tried to update it with composer and download multi files from Github
all of them seem to give this error not sure what am doing wrong or maybe this api no longer works
any help or tip will be welcome.
If anyone know other Whatsapp api or better way to send msg from localserver/php to Whatsapp users please share :)