先修一下命令无法正常检查聊天类型限制
This commit is contained in:
committed by
Windpicker-owo
parent
c9b20aa61a
commit
b98417dec6
@@ -73,7 +73,7 @@ class BaseCommand(ABC):
|
||||
return True
|
||||
|
||||
# 检查是否为群聊消息
|
||||
is_group = hasattr(self.message, "is_group_message") and self.message.is_group_message
|
||||
is_group = self.message.message_info.group_info
|
||||
|
||||
if self.chat_type_allow == ChatType.GROUP and is_group:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user