Add files via upload

pull/1058/head
A0000Xz 2025-06-24 00:57:44 +08:00 committed by GitHub
parent ac089bda7b
commit ed1724b29c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 564 additions and 564 deletions

View File

@ -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) 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: Args:
@ -295,7 +295,7 @@ async def command_to_stream(command: Union[str, dict], stream_id: str, storage_m
Returns: Returns:
bool: 是否发送成功 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( async def custom_to_stream(