mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🎨 Fix the mandatory verification not working
This commit is contained in:
parent
401926f2dc
commit
c1ede74edf
@ -20,7 +20,9 @@ class VerificationPlugins(Plugin):
|
||||
message = update.effective_message
|
||||
logger.info("用户 %s[%s] 发出verify命令", user.full_name, user.id)
|
||||
try:
|
||||
uid, gt, challenge = await self.challenge_system.create_challenge(user.id, context.args is not None)
|
||||
uid, gt, challenge = await self.challenge_system.create_challenge(
|
||||
user.id, context.args is not None and not len(context.args) >= 1
|
||||
)
|
||||
except ChallengeSystemException as exc:
|
||||
await message.reply_text(exc.message)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user