DEBUG MODE IS NOT DEBUG ENOUGH

This commit is contained in:
Hamcha 2016-02-20 22:42:30 +01:00
parent fafc24c3d0
commit f1e09612cb
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ func (t Telegram) SendPhoto(data tg.ClientPhotoData) {
resp, err := client.Do(req)
checkerr("SendPhoto/http.Do", err)
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