Skip to content

Commit

Permalink
Solved sending messages to TG too frequently
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanliang committed Apr 21, 2021
1 parent 7ed62fa commit 73e4e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func botSend(botKey string, iuserID string, initText string) func(string) {
ok, _ = jsonparser.GetBoolean(body, "ok")
if !ok {
description, _ := jsonparser.GetString(body, "description")
if !strings.Contains(string(body), "message is not modified") {
if !strings.Contains(string(body), "message is not modified") && !strings.Contains(string(body), "Too Many Requests") {
log.Panicf(loc.print("telegramSendError"), description)
}
}
Expand Down

0 comments on commit 73e4e4c

Please sign in to comment.