Send Text/Media Message
Note :
in case the token not authorized , the message will add to queue and will be sent when the WhatsApp token is ready.
Request URL
https://api.wachat.net/send
Request body
token *Required
receiver *Required

Phone number with international format e.g. 6287766969318

msgtext *Required

Message text, UTF-8 or UTF-16 string with emoji
Max length : 4096 characters .

mediaurl *optional

HTTP link image or base64-encoded file
Supported extensions ( jpg , jpeg , gif , png , webp , bmp, pdf )


Rest API

  $response1 => file_get_contents('https://api.wachat.net/send?receiver=$receiver&msgtext=Testing+Send+Message+Through+API&token=$token'); // Send message (Text only)

  $response1 => file_get_contents('https://api.wachat.net/send?receiver=$receiver&msgtext=Testing+Send+Message+Through+API&token=$token&mediaurl=$mediaurl'); // Send message with media

  echo $response1; // output {success:true} or {success:false}
  echo $response1; // output {success:true} or {success:false}

Note : don't forget to URL encode your query params like base64 or utf-8