src/whatsprot.class.php
public function sendStatusUpdate($txt)
    {
        $child = new ProtocolNode('status', null, null, $txt);
        $nodeID = $this->createIqId();
        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'type'  => 'set',
                'id'    => $nodeID,
                'xmlns' => 'status',
            ], [$child], null);

        $this->sendNode($node);
        $this->eventManager()->fire('onSendStatusUpdate',
            [
                $this->phoneNumber,
                $txt,
            ]);
    }
public function sendStatusUpdate($txt)
    {
        $child = new ProtocolNode('status', null, null, $txt);
        $nodeID = $this->createIqId();
        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'type'  => 'set',
                'id'    => $nodeID,
                'xmlns' => 'status',
            ], [$child], null);

        $this->sendNode($node);
        $this->eventManager()->fire('onSendStatusUpdate',
            [
                $this->phoneNumber,
                $txt,
            ]);
    }
public function sendStatusUpdate ( $ txt ) { $ child = new ProtocolNode ( 'status' , null , null , $ txt ) ; $ nodeID = $ this -> createIqId ( ) ; $ node = new ProtocolNode ( 'iq' , [ 'to' => Constants :: WHATSAPP_SERVER , 'type' => 'set' , 'id' => $ nodeID , 'xmlns' => 'status' , ] , [ $ child ] , null ) ; $ this -> sendNode ( $ node ) ; $ this -> eventManager ( ) -> fire ( 'onSendStatusUpdate' , [ $ this -> phoneNumber , $ txt , ] ) ; }
Update the user status.

@param string $txt The text of the message status to send.
Update the user status .