🐛 修复 V12 mention的问题 (#490)

* 修复V12 mention的问题

* 🚨 `pre-commit-ci`修复格式错误

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Small_yu 2023-04-08 01:28:02 +08:00 committed by GitHub
parent 24e1729958
commit d68c8124c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: