DEBUG MODE ON!
This commit is contained in:
parent
47ea2b9324
commit
5e232b5012
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue