Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
fix admin chat error
Browse files Browse the repository at this point in the history
  • Loading branch information
luming committed May 19, 2021
1 parent bdfcd71 commit ba170eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion control.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ func SignTask() {
UnbindUserStr = UnbindUserStr + ubu + "\n"
}
for _, a := range admin {
chat, _ := bot.ChatByID(strconv.FormatInt(a, 10))
chat, err := bot.ChatByID(strconv.FormatInt(a, 10))
if err != nil {
logger.Println(err)
continue
}
bot.Send(chat, gettext.Gettext("taskFeedbackAdmin")+time.Now().Format("2006-01-02 15:04:05")+gettext.Gettext("result")+strconv.Itoa(signOk)+"/"+strconv.Itoa(num)+gettext.Gettext("wrongAccount")+ErrUserStr+gettext.Gettext("clearingAccount")+UnbindUserStr)
}
fmt.Println("----Task End----")
Expand Down

0 comments on commit ba170eb

Please sign in to comment.