DEBUG MODE IS NOT DEBUG ENOUGH
This commit is contained in:
parent
fafc24c3d0
commit
f1e09612cb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue