From 902d6b97d61e07fbfc7c290d65aa958f280c8bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=99=A8=E9=A3=9E?= Date: Fri, 17 Apr 2026 02:36:03 +0800 Subject: [PATCH] fix(weixin): correct send_image_file parameter name to match base class The send_image_file method in WeixinAdapter used 'path' as parameter name, but BasePlatformAdapter and gateway callers use 'image_path'. This mismatch caused image sending to fail when called through the gateway's extract_media path. Changed parameter name from 'path' to 'image_path' to match the interface defined in base.py and the calls in gateway/run.py. --- gateway/platforms/weixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/platforms/weixin.py b/gateway/platforms/weixin.py index e5859e41a4..921d822aa6 100644 --- a/gateway/platforms/weixin.py +++ b/gateway/platforms/weixin.py @@ -1542,12 +1542,12 @@ class WeixinAdapter(BasePlatformAdapter): async def send_image_file( self, chat_id: str, - path: str, + image_path: str, caption: str = "", reply_to: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, ) -> SendResult: - return await self.send_document(chat_id, file_path=path, caption=caption, metadata=metadata) + return await self.send_document(chat_id, file_path=image_path, caption=caption, metadata=metadata) async def send_document( self,