all repos — telegram-bot-api @ 4b372faeebe7df44f54a8495a6d3ca91b59fb6dd

Golang bindings for the Telegram Bot API

Make returned error consistent.
Syfaro syfaro@huefox.com
Tue, 21 Jul 2020 03:56:23 -0500
commit

4b372faeebe7df44f54a8495a6d3ca91b59fb6dd

parent

7a018ae8739bcd25eeb220a85c35bf1ad73e1da8

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

jump to
M bot.gobot.go

@@ -111,7 +111,7 @@ parameters := ResponseParameters{}

if apiResp.Parameters != nil { parameters = *apiResp.Parameters } - return apiResp, &Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} + return apiResp, Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} } return apiResp, nil