all repos — telegram-bot-api @ a6b4ce46a6e9a0270cbd9eb3a4d1c746886f4f05

Golang bindings for the Telegram Bot API

return pointer to error
NemoD503 1historicus@gmail.com
Sun, 20 Oct 2019 22:47:21 +0300
commit

a6b4ce46a6e9a0270cbd9eb3a4d1c746886f4f05

parent

b33efeebc78563cfeddf19563781cffb16aaabdf

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

jump to
M bot.gobot.go

@@ -92,7 +92,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