diff --git a/broker/telegram.go b/broker/telegram.go index 591b444..529363d 100644 --- a/broker/telegram.go +++ b/broker/telegram.go @@ -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