DEBUG MODE ON!

This commit is contained in:
Hamcha 2016-02-20 21:46:55 +01:00
parent c8ed6b77e9
commit 7501afc81d

View file

@ -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")