diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-09-06 09:40:11 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-09-06 09:40:11 +0300 |
commit | 33e153398fc9fb027146ae7a7d9887ffc6d9348d (patch) | |
tree | 7c30724ef1bb13a6b274739fa39ea0e423971a5e | |
parent | 6e4ade909d9b3a0a4a8dd8c11a4b1984b84f09e4 (diff) |
Fix error on messagev0.3.1
-rw-r--r-- | messages.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |