original_string: public function answerShippingQuery(bool $ok = true, string $error = null, array $shipping_options) {
          if (!isset($this->_shipping_query_id)) {
              throw new BotException('Callback query ID not set, wrong update');
          }
  
          $parameters = [
              'shipping_query_id' => $this->_shipping_query_id,
              'ok' => $ok,
              'error_message' => $error,
              'shipping_options' => $this->generateShippingOptions($shipping_options)
          ];
  
          return $this->execRequest('answerShippingQuery?' . http_build_query($parameters));
      }
code: public function answerShippingQuery(bool $ok = true, string $error = null, array $shipping_options) {
          if (!isset($this->_shipping_query_id)) {
              throw new BotException('Callback query ID not set, wrong update');
          }
  
          $parameters = [
              'shipping_query_id' => $this->_shipping_query_id,
              'ok' => $ok,
              'error_message' => $error,
              'shipping_options' => $this->generateShippingOptions($shipping_options)
          ];
  
          return $this->execRequest('answerShippingQuery?' . http_build_query($parameters));
      }
code_tokens: public function answerShippingQuery ( bool $ ok = true , string $ error = null , array $ shipping_options ) { if ( ! isset ( $ this -> _shipping_query_id ) ) { throw new BotException ( 'Callback query ID not set, wrong update' ) ; } $ parameters = [ 'shipping_query_id' => $ this -> _shipping_query_id , 'ok' => $ ok , 'error_message' => $ error , 'shipping_options' => $ this -> generateShippingOptions ( $ shipping_options ) ] ; return $ this -> execRequest ( 'answerShippingQuery?' . http_build_query ( $ parameters ) ) ; }
docstring: \brief Send an update once the user has confirmed their shipping details.
  @param bool $ok True is everything is alright, elsewhere False.
  @param string $error The error message if something went wrong.
  @param array $shipping_options The various shipping options available.
  For example: array('FedEx' => ['Dispatch' => 15.90, 'Italy Taxes' => 2.50])
  @return bool True on success.
docstring_tokens: \ brief Send an update once the user has confirmed their shipping details .