DEBUG MODE ON!

This commit is contained in:
Hamcha 2016-02-20 22:38:11 +01:00
parent 47ea2b9324
commit 5e232b5012

View file

@ -104,8 +104,10 @@ func (t Telegram) SendPhoto(data tg.ClientPhotoData) {
return return
} }
_, err = client.Do(req) resp, err := client.Do(req)
checkerr("SendPhoto/http.Do", err) checkerr("SendPhoto/http.Do", err)
defer resp.Body.Close()
fmt.Println(ioutil.ReadAll(resp.Body))
} }
// 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