Support New Group Join Request

This commit is contained in:
xtaodada 2022-03-07 22:25:20 +08:00
parent 0a43230e76
commit 2848a901dd
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -413,13 +413,13 @@ class GoCQHttp(BaseClient):
context["group_id"] = str(context["group_id"]) + "_notification"
context["message_type"] = "group"
context["event_description"] = "\u2139 New Group Join Request"
original_group = self.get_group_info(context["group_id"], False)
original_group = self.get_group_info(context["group_id_orig"], False)
group_name = context["group_id"]
if original_group is not None and "group_name" in original_group:
group_name = original_group["group_name"]
msg = Message()
msg.uid = "group" + "_" + str(context["group_id"])
msg.author = self.chat_manager.build_efb_chat_as_system_user(context)
msg.author = (self.chat_manager.build_efb_chat_as_system_user(context)).other
msg.chat = self.chat_manager.build_efb_chat_as_group(context)
msg.deliver_to = coordinator.master
msg.type = MsgType.Text