From bd0aa78bdbccc2f1f1bb7994daa60b6e575cb128 Mon Sep 17 00:00:00 2001 From: qianxu Date: Wed, 11 Oct 2023 20:15:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20red=20?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E9=97=AE=E9=A2=98=20(#590)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GenshinUID/client.py b/GenshinUID/client.py index 2006f354..261da12f 100644 --- a/GenshinUID/client.py +++ b/GenshinUID/client.py @@ -407,7 +407,7 @@ async def onebot_red_send( assert isinstance(bot, Bot) - chat_type = 'group' if target_type == 'group' else 'friend' + chat_type = 2 if target_type == 'group' else 1 async def _send(content: Optional[str], image: Optional[str]): result_msg: Message = Message()