From 048bd53163091c94c1f85235ba4515f81da2ca18 Mon Sep 17 00:00:00 2001 From: zhilv Date: Fri, 29 May 2026 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notify/wechat_company.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/notify/wechat_company.py b/notify/wechat_company.py index de0b25f..8473b0b 100644 --- a/notify/wechat_company.py +++ b/notify/wechat_company.py @@ -56,7 +56,15 @@ async def send_webhook(group_id: str, file_url: str) -> dict: "Authorization": f"Bearer {config.WEBHOOK_API_TOKEN}", } - payload = {"group_id": group_id, "url": file_url, "type": "image"} + payload = { + "group_id": group_id, + "messages": [ + { + "type": "image", + "url": file_url, + }, + ], + } async with httpx.AsyncClient(timeout=10) as client: resp = await client.post(url, json=payload, headers=headers)