Compare commits
	
		
			2 Commits
		
	
	
		
			82f49079ab
			...
			4afbc2564b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4afbc2564b | |||
| 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)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user