mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-12 06:55:58 +08:00
🐛 修复 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:
parent
24e1729958
commit
d68c8124c2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user