pmcaptcha 提升为管理员权限

This commit is contained in:
xtaodada 2022-06-06 20:26:02 +08:00
parent 0439a8f4b8
commit 94a5a371f7
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 2 deletions

View File

@ -72,10 +72,10 @@
},
{
"name": "pmcaptcha",
"version": "1.00",
"version": "1.001",
"section": "chat",
"maintainer": "cloudreflection",
"size": "8.27 kb",
"size": "9.23 kb",
"supported": true,
"des-short": "简单的私聊人机验证",
"des": "简单的私聊人机验证,支持自定义关键词黑名单,通过后欢迎语,验证超时时间"

View File

@ -106,6 +106,7 @@ async def process_pm_captcha(client: Client, message: Message):
@listener(is_plugin=True, outgoing=True, command="pmcaptcha",
need_admin=True,
description='一个简单的私聊人机验证 可用命令列表请见 t.me/cloudreflection_channel/298')
async def pm_captcha(client: Client, message: Message):
cid_ = str(message.chat.id)