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

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 image file to send
@param bool   $storeURLmedia Keep a copy of the audio file on your server
@param int    $fsize
@param string $fhash
@param string $caption

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