From 8389bdb6d904cc5c7652765442bf1d0dcd10f221 Mon Sep 17 00:00:00 2001 From: A0000Xz <122650088+A0000Xz@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsend=5Fapi=E4=B8=ADcommand=5F?= =?UTF-8?q?to=5Fstream=E6=9C=AA=E4=BD=BF=E7=94=A8display=5Fname=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin_system/apis/send_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin_system/apis/send_api.py b/src/plugin_system/apis/send_api.py index b09010aff..00b1581d4 100644 --- a/src/plugin_system/apis/send_api.py +++ b/src/plugin_system/apis/send_api.py @@ -284,7 +284,7 @@ async def image_to_stream(image_base64: str, stream_id: str, storage_message: bo return await _send_to_target("image", image_base64, stream_id, "", typing=False, storage_message=storage_message) -async def command_to_stream(command: Union[str, dict], stream_id: str, storage_message: bool = True) -> bool: +async def command_to_stream(command: Union[str, dict], stream_id: str, storage_message: bool = True, display_message: str = "") -> bool: """向指定流发送命令 Args: @@ -295,7 +295,7 @@ async def command_to_stream(command: Union[str, dict], stream_id: str, storage_m Returns: bool: 是否发送成功 """ - return await _send_to_target("command", command, stream_id, "", typing=False, storage_message=storage_message) + return await _send_to_target("command", command, stream_id, display_message, typing=False, storage_message=storage_message) async def custom_to_stream(