From ac081c5b4d181b8a645a44128dbbc1d84923cd88 Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Sun, 12 Nov 2023 03:15:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=B1=BB=E5=9E=8B=20(KimigaiiWuyi/GenshinUID#606)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gsuid_core/bot.py b/gsuid_core/bot.py index 6531096..916cd8b 100644 --- a/gsuid_core/bot.py +++ b/gsuid_core/bot.py @@ -229,7 +229,9 @@ class Bot: return await self.bot.target_send( message, self.ev.user_type, - self.ev.group_id if self.ev.group_id else self.ev.user_id, + self.ev.user_id + if self.ev.user_type == 'direct' + else self.ev.group_id, self.ev.real_bot_id, self.bot_self_id, self.ev.msg_id,