From f1e09612cb5fccf098d77790dcd76776bbca36a9 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 20 Feb 2016 22:42:30 +0100 Subject: [PATCH] DEBUG MODE IS NOT DEBUG ENOUGH --- broker/telegram.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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