code: func (bot *BotAPI) decodeAPIResponse(responseBody io.Reader, resp *APIResponse) (_ []byte, err error) {
  	if !bot.Debug {
  		dec := json.NewDecoder(responseBody)
  		err = dec.Decode(resp)
  		return
  	}
  
  	// if debug, read reponse body
  	data, err := ioutil.ReadAll(responseBody)
  	if err != nil {
  		return
  	}
  
  	err = json.Unmarshal(data, resp)
  	if err != nil {
  		return
  	}
  
  	return data, nil
  }
docs: // decodeAPIResponse decode response and return slice of bytes if debug enabled.
  // If debug disabled, just decode http.Response.Body stream to APIResponse struct
  // for efficient memory usage