Skip to content

Instantly share code, notes, and snippets.

View vttrz's full-sized avatar

Victor vttrz

View GitHub Profile
@vttrz
vttrz / send-whatsapp-group.php
Created June 24, 2019 22:43 — forked from whatsmate/send-whatsapp-group.php
Send a message to a WhatsApp group from PHP
<?php
$INSTANCE_ID = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here
$CLIENT_ID = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here
$CLIENT_SECRET = "YOUR_CLIENT_SECRET_HERE"; // TODO: Replace it with your Forever Green client secret here
$postData = array(
'group_admin' => '12025550108', // TODO: Specify the WhatsApp number of the group creator, including the country code
'group_name' => 'Happy Club', // TODO: Specify the name of the group
'message' => 'Guys, party tonight?' // TODO: Specify the content of your message
);