diff --git a/telegram.go b/telegram.go index a784954..9c9f3b7 100644 --- a/telegram.go +++ b/telegram.go @@ -10,6 +10,7 @@ import ( "net/url" "os" + log "github.com/kirillDanshin/dlog" json "github.com/pquerna/ffjson/ffjson" http "github.com/valyala/fasthttp" ) @@ -50,6 +51,9 @@ func (bot *Bot) request( return nil, err } + log.Ln("Response:") + log.D(*resp) + var data Response if err := json.Unmarshal(resp.Body(), &data); err != nil { return nil, err @@ -129,6 +133,9 @@ func (bot *Bot) upload( return nil, err } + log.Ln("Response:") + log.D(*resp) + var data Response if err := json.Unmarshal(resp.Body(), &data); err != nil { return nil, err