From 5e232b5012e31226612bc3f87c80a48097c7fa4a Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 20 Feb 2016 22:38:11 +0100 Subject: [PATCH] DEBUG MODE ON! --- broker/telegram.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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