From 16c28db1cc220ce8552caa3901372ce5e7953556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 26 Sep 2023 18:50:48 +0800 Subject: [PATCH] :art: Update `NEW_CHAT_MEMBERS` message handler --- plugins/group/captcha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/group/captcha.py b/plugins/group/captcha.py index 0db3e0d1..cd021990 100644 --- a/plugins/group/captcha.py +++ b/plugins/group/captcha.py @@ -354,7 +354,6 @@ class GroupCaptcha(Plugin): ) return raise exc - new_chat_members_message = await self.get_new_chat_members_message(user, context) question_id = random.choice(question_id_list) # nosec question = await self.quiz_service.get_question(question_id) buttons = [ @@ -419,6 +418,7 @@ class GroupCaptcha(Plugin): user_id=user.id, job_kwargs={"replace_existing": True, "id": f"{chat.id}|{user.id}|auth_clean_question_message"}, ) + new_chat_members_message = await self.get_new_chat_members_message(user, context) try: if new_chat_members_message: await new_chat_members_message.delete()