Open orcapa opened 3 months ago
This is my code to send the message
private function enviarWhatikepSms($telefonop, $textop, $concepto) { $url = "https://myserver.openco.com/api/messages/send"; $token = "MOYOHOYPAGOS394594"; $datasend = json_encode(array('number' => $telefonop, 'body' => $textop)); $curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Accept: application/json",
"Authorization: Bearer $token",
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_POSTFIELDS, $datasend);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
return $resp;
}
Hi @orcapa
currently this is not supported. I'm marking this issue as enhancement to see what can be done.
Thanks @allgood
Hello everyone, I need to send messages to WhatsApp groups via API. ? I currently send via API to the phone number. But it won't let me send with the group ID.
How can I change the code to send the message. ?
Code: { "number": "573148814322", "body": "Your messages" }
I need change number to group ID: 120363146269777398@g.us