all repos — telegram-bot-api @ 08d7c01637c5286ccb4cb711d533222b769408cb

Golang bindings for the Telegram Bot API

Rename all errors to be prefixed with Err.
Syfaro syfaro@foxpaw.in
Sun, 03 Jan 2016 22:50:29 -0600
commit

08d7c01637c5286ccb4cb711d533222b769408cb

parent

6c84cd1fbbb95d6d1286150cd682bb7b8c0cb2be

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M bot.gobot.go

@@ -64,7 +64,7 @@ }

defer resp.Body.Close() if resp.StatusCode == http.StatusForbidden { - return APIResponse{}, errors.New(APIForbidden) + return APIResponse{}, errors.New(ErrAPIForbidden) } bytes, err := ioutil.ReadAll(resp.Body)
M configs.goconfigs.go

@@ -30,8 +30,8 @@ )

// API errors const ( - // APIForbidden happens when a token is bad - APIForbidden = "forbidden" + // ErrAPIForbidden happens when a token is bad + ErrAPIForbidden = "forbidden" ) // Constant values for ParseMode in MessageConfig