From 33e153398fc9fb027146ae7a7d9887ffc6d9348d Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Fri, 6 Sep 2019 09:40:11 +0300 Subject: Fix error on message --- messages.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/messages.go b/messages.go index 7c20e05..e4a8922 100644 --- a/messages.go +++ b/messages.go @@ -125,7 +125,8 @@ func (a *messages) sendMessage(chatID int, userID int, message *schemes.NewMessa } defer body.Close() if err := json.NewDecoder(body).Decode(result); err != nil { - return err + // Message sent without errors + return nil } if result.Code == "" { return nil -- cgit v1.2.3