src/whatsprot.class.php
public function sendBroadcastAudio($targets, $path, $storeURLmedia = false, $fsize = 0, $fhash = '')
    {
        if (!is_array($targets)) {
            $targets = [$targets];
        }
        // Return message ID. Make pull request for this.
        return  $this->sendMessageAudio($targets, $path, $storeURLmedia, $fsize, $fhash);
    }
public function sendBroadcastAudio($targets, $path, $storeURLmedia = false, $fsize = 0, $fhash = '')
    {
        if (!is_array($targets)) {
            $targets = [$targets];
        }
        // Return message ID. Make pull request for this.
        return  $this->sendMessageAudio($targets, $path, $storeURLmedia, $fsize, $fhash);
    }
public function sendBroadcastAudio ( $ targets , $ path , $ storeURLmedia = false , $ fsize = 0 , $ fhash = '' ) { if ( ! is_array ( $ targets ) ) { $ targets = [ $ targets ] ; } // Return message ID. Make pull request for this. return $ this -> sendMessageAudio ( $ targets , $ path , $ storeURLmedia , $ fsize , $ fhash ) ; }
Send a Broadcast Message with audio.

The recipients MUST have your number (synced) and in their contact list
otherwise the message will not deliver to that person.

Approx 20 (unverified) is the maximum number of targets

@param array  $targets       An array of numbers to send to.
@param string $path          URL or local path to the audio file to send
@param bool   $storeURLmedia Keep a copy of the audio file on your server
@param int    $fsize
@param string $fhash

@return string|null Message ID if successfully, null if not.
Send a Broadcast Message with audio .