From 7501afc81d8f6273dab204bcd4dd02c8888138cd Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 20 Feb 2016 21:46:55 +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 4ffd403..20fb9e5 100644 --- a/broker/telegram.go +++ b/broker/telegram.go @@ -95,7 +95,9 @@ func (t Telegram) GetFile(data tg.FileRequestData, client net.Conn, callback int return } - path := "https://api.telegram.org/file/bot" + t.Token + "/" + *filespecs.Path + fmt.Println(filespecs) + + path := "https://api.telegram.org/file/bot" + t.Token + "/" + *(filespecs.Path) fileresp, err := http.Get(path) if checkerr("GetFile/get", err) { fail("Could not retrieve file from Telegram's servers")