🐛 过滤 userbot 命令消息。
This commit is contained in:
parent
e23cf3cab5
commit
b85097f27b
2
func.py
2
func.py
@ -127,7 +127,7 @@ def chat_content_exec(update, context):
|
|||||||
print("群组类型: " + str(chat_type))
|
print("群组类型: " + str(chat_type))
|
||||||
print("用户ID: " + str(user_id))
|
print("用户ID: " + str(user_id))
|
||||||
print("chat_id: " + str(chat_id))
|
print("chat_id: " + str(chat_id))
|
||||||
if text.startswith('/') or '//' in text:
|
if text.startswith('/') or '//' in text or text.startswith('-'):
|
||||||
print("这是一条指令或者链接信息,跳过")
|
print("这是一条指令或者链接信息,跳过")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user