DEBUG MODE IS NOT DEBUG ENOUGH

This commit is contained in:
Hamcha 2016-02-20 22:42:30 +01:00
parent fafc24c3d0
commit f1e09612cb

View file

@ -107,7 +107,8 @@ func (t Telegram) SendPhoto(data tg.ClientPhotoData) {
resp, err := client.Do(req) resp, err := client.Do(req)
checkerr("SendPhoto/http.Do", err) checkerr("SendPhoto/http.Do", err)
defer resp.Body.Close() defer resp.Body.Close()
fmt.Println(ioutil.ReadAll(resp.Body)) respbytes, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(respbytes))
} }
// GetFile sends a "getFile" API call to Telegram's servers and fetches the file // GetFile sends a "getFile" API call to Telegram's servers and fetches the file