diff --git a/kicker/tasks.go b/kicker/tasks.go index 18619e1..1790934 100644 --- a/kicker/tasks.go +++ b/kicker/tasks.go @@ -33,6 +33,10 @@ func TaskKickOldUsers(b *echotron.API) { continue } log.Printf("User %s was banned", user.FirstName) + _, err = b.DeleteMessage(user.ChatId, user.CaptchaMessage) + if err != nil { + log.Println("ERR: Captcha message not deleted: ", err) + } store.DeleteByID(ctx, user.Id) } }