DEBUG MODE ON!
This commit is contained in:
parent
c8ed6b77e9
commit
7501afc81d
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ func (t Telegram) GetFile(data tg.FileRequestData, client net.Conn, callback int
|
||||||
return
|
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)
|
fileresp, err := http.Get(path)
|
||||||
if checkerr("GetFile/get", err) {
|
if checkerr("GetFile/get", err) {
|
||||||
fail("Could not retrieve file from Telegram's servers")
|
fail("Could not retrieve file from Telegram's servers")
|
||||||
|
|
Reference in a new issue