🐛 过滤 userbot 命令消息。

This commit is contained in:
Xtao_dada 2021-06-21 13:57:24 +08:00 committed by GitHub
parent e23cf3cab5
commit b85097f27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ def chat_content_exec(update, context):
print("群组类型: " + str(chat_type))
print("用户ID: " + str(user_id))
print("chat_id: " + str(chat_id))
if text.startswith('/') or '//' in text:
if text.startswith('/') or '//' in text or text.startswith('-'):
print("这是一条指令或者链接信息,跳过")
return
else: