now user captcha checking is in parallel

This commit is contained in:
InsanusMokrassar committed 2021-04-03 14:22:01 +06:00
1 parent 4a7339afd9
commit 3a7ef56565
1 file changed
+5 -1
@@ -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) {