original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Build full URL to a telegram API with given pathName
  
  @param string $pathName
  
  @return string
docstring_tokens: Build full URL to a telegram API with given pathName