mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🎨 Fix the mandatory verification not working
This commit is contained in:
parent
ebbb2b71f1
commit
a77ebf4b3a
@ -20,7 +20,9 @@ class VerificationPlugins(Plugin):
|
|||||||
message = update.effective_message
|
message = update.effective_message
|
||||||
logger.info("用户 %s[%s] 发出verify命令", user.full_name, user.id)
|
logger.info("用户 %s[%s] 发出verify命令", user.full_name, user.id)
|
||||||
try:
|
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:
|
except ChallengeSystemException as exc:
|
||||||
await message.reply_text(exc.message)
|
await message.reply_text(exc.message)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user