src/whatsprot.class.php
public function sendGetGroupV2Info($groupID)
    {
        $msgId = $this->nodeId['get_groupv2_info'] = $this->createIqId();

        $queryNode = new ProtocolNode('query',
            [
                'request' => 'interactive',
            ], null, null);

        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'w:g2',
                'type'  => 'get',
                'to'    => $this->getJID($groupID),
            ], [$queryNode], null);

        $this->sendNode($node);
    }
public function sendGetGroupV2Info($groupID)
    {
        $msgId = $this->nodeId['get_groupv2_info'] = $this->createIqId();

        $queryNode = new ProtocolNode('query',
            [
                'request' => 'interactive',
            ], null, null);

        $node = new ProtocolNode('iq',
            [
                'id'    => $msgId,
                'xmlns' => 'w:g2',
                'type'  => 'get',
                'to'    => $this->getJID($groupID),
            ], [$queryNode], null);

        $this->sendNode($node);
    }
public function sendGetGroupV2Info ( $ groupID ) { $ msgId = $ this -> nodeId [ 'get_groupv2_info' ] = $ this -> createIqId ( ) ; $ queryNode = new ProtocolNode ( 'query' , [ 'request' => 'interactive' , ] , null , null ) ; $ node = new ProtocolNode ( 'iq' , [ 'id' => $ msgId , 'xmlns' => 'w:g2' , 'type' => 'get' , 'to' => $ this -> getJID ( $ groupID ) , ] , [ $ queryNode ] , null ) ; $ this -> sendNode ( $ node ) ; }
Send a request to get new Groups V2 info.

@param $groupID
The group JID
Send a request to get new Groups V2 info .