diff --git a/src/plugin_system/apis/send_api.py b/src/plugin_system/apis/send_api.py index 3aea3cde4..565bc9f25 100644 --- a/src/plugin_system/apis/send_api.py +++ b/src/plugin_system/apis/send_api.py @@ -511,9 +511,11 @@ async def recall_message(message_id: str, stream_id: str) -> bool: Returns: bool: 是否成功 """ - response = await adapter_command_to_stream( - action="delete_msg", - params={"message_id": message_id}, - stream_id=stream_id, - ) - return response.get("status") == "ok" + command_data = {"name": "delete_msg", "args": message_id} + + success = await command_to_stream( + command=command_data, + stream_id=stream_id, + storage_message=True, + ) + return success \ No newline at end of file