From d68c8124c28805a1ec93e20b2cc5999fb69928db Mon Sep 17 00:00:00 2001 From: Small_yu Date: Sat, 8 Apr 2023 01:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20V12=20`ment?= =?UTF-8?q?ion`=E7=9A=84=E9=97=AE=E9=A2=98=20(#490)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复V12 mention的问题 * 🚨 `pre-commit-ci`修复格式错误 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- GenshinUID/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GenshinUID/client.py b/GenshinUID/client.py index 45b1f821..40cd9e9d 100644 --- a/GenshinUID/client.py +++ b/GenshinUID/client.py @@ -617,7 +617,8 @@ async def onebot_v12_send( ] if at_list and target_type == "group": params["message"].insert( - 0, {"type": "at", "data": {"user_id": f"{at_list[0]}"}} + 0, + {"type": "mention", "data": {"user_id": f"{at_list[0]}"}}, ) await bot.call_api('send_message', **params) elif image: