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