mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-12 06:55:58 +08:00
🐛 修复ntchat_send
中的at_list
调用问题
This commit is contained in:
parent
d7f3b102e5
commit
7257820610
@ -366,15 +366,13 @@ async def ntchat_send(
|
|||||||
):
|
):
|
||||||
async def _send(content: Optional[str], image: Optional[str]):
|
async def _send(content: Optional[str], image: Optional[str]):
|
||||||
if content:
|
if content:
|
||||||
|
result = {}
|
||||||
if at_list and target_type == 'group':
|
if at_list and target_type == 'group':
|
||||||
for _ in at_list:
|
for _ in at_list:
|
||||||
content += '{$@}'
|
content += '{$@}'
|
||||||
await bot.call_api(
|
result['at_list'] = at_list
|
||||||
'send_text',
|
result['content'] = content
|
||||||
to_wxid=target_id,
|
await bot.call_api('send_text', to_wxid=target_id, **result)
|
||||||
content=content,
|
|
||||||
at_list=at_list,
|
|
||||||
)
|
|
||||||
if image:
|
if image:
|
||||||
await bot.call_api(
|
await bot.call_api(
|
||||||
'send_image',
|
'send_image',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user