now user captcha checking is in parallel

This commit is contained in:
InsanusMokrassar 2021-04-03 14:22:01 +06:00
parent 4a7339afd9
commit 3a7ef56565

View File

@ -103,7 +103,11 @@ class CaptchaBotPlugin : Plugin {
)
}
val settings = it.chat.settings()
settings.captchaProvider.apply { doAction(it.date, chat, newUsers) }
doInSubContext(stopOnCompletion = false) {
launch {
settings.captchaProvider.apply { doAction(it.date, chat, newUsers) }
}
}
}
if (adminsAPI != null) {