protected function buildUrl(string $pathName, array $params = []): string
    {
        $uri = new BasicUri($this->baseUrl.$this->token.$pathName);
        foreach ($params as $name => $value) {
            if (is_bool($value)) {
                $value = (int)$value;
            }
            $uri = $uri->withQueryValue($name, $value);
        }

        return (string) $uri;
    }
protected function buildUrl(string $pathName, array $params = []): string
    {
        $uri = new BasicUri($this->baseUrl.$this->token.$pathName);
        foreach ($params as $name => $value) {
            if (is_bool($value)) {
                $value = (int)$value;
            }
            $uri = $uri->withQueryValue($name, $value);
        }

        return (string) $uri;
    }
protected function buildUrl ( string $ pathName , array $ params = [ ] ) : string { $ uri = new BasicUri ( $ this -> baseUrl . $ this -> token . $ pathName ) ; foreach ( $ params as $ name => $ value ) { if ( is_bool ( $ value ) ) { $ value = ( int ) $ value ; } $ uri = $ uri -> withQueryValue ( $ name , $ value ) ; } return ( string ) $ uri ; }
Build full URL to a telegram API with given pathName

@param string $pathName

@return string
Build full URL to a telegram API with given pathName