public function setProxy($proxyString = '')
    {
        if (empty($proxyString)) {
            $this->proxySettings = [];
            return $this;
        }

        $this->proxySettings = [
            CURLOPT_PROXY => $proxyString,
            CURLOPT_HTTPPROXYTUNNEL => true,
        ];
        return $this;
    }
public function setProxy($proxyString = '')
    {
        if (empty($proxyString)) {
            $this->proxySettings = [];
            return $this;
        }

        $this->proxySettings = [
            CURLOPT_PROXY => $proxyString,
            CURLOPT_HTTPPROXYTUNNEL => true,
        ];
        return $this;
    }
public function setProxy ( $ proxyString = '' ) { if ( empty ( $ proxyString ) ) { $ this -> proxySettings = [ ] ; return $ this ; } $ this -> proxySettings = [ CURLOPT_PROXY => $ proxyString , CURLOPT_HTTPPROXYTUNNEL => true , ] ; return $ this ; }
Enable proxy for curl requests. Empty string will disable proxy.

@param string $proxyString

@return BotApi
Enable proxy for curl requests . Empty string will disable proxy .