Deleting old captcha messages
This commit is contained in:
parent
09d7496c93
commit
a3e12f3c45
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue