all repos — telegram-bot-api @ 80bdd621f775d115d6e781d9d2f91e79d0f41169

Golang bindings for the Telegram Bot API

Return APIResponse even with error in MakeRequest, closes #66.
Syfaro syfaro@foxpaw.in
Sat, 31 Dec 2016 13:48:48 -0600
commit

80bdd621f775d115d6e781d9d2f91e79d0f41169

parent

d74d1f34729fee667f5856b88c711e6f75fa4fd7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M bot.gobot.go

@@ -81,7 +81,7 @@ var apiResp APIResponse

json.Unmarshal(bytes, &apiResp) if !apiResp.Ok { - return APIResponse{}, errors.New(apiResp.Description) + return apiResp, errors.New(apiResp.Description) } return apiResp, nil