DEBUG MODE ON!

This commit is contained in:
Hamcha 2016-02-20 22:38:11 +01:00
parent 47ea2b9324
commit 5e232b5012
1 changed files with 3 additions and 1 deletions

View File

@ -104,8 +104,10 @@ func (t Telegram) SendPhoto(data tg.ClientPhotoData) {
return
}
_, err = client.Do(req)
resp, err := client.Do(req)
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