perf: 支持图片输入

This commit is contained in:
Soulter
2025-01-08 19:56:03 +08:00
parent 75cc4cac5a
commit b1d1a13d5f
5 changed files with 144 additions and 25 deletions
+6 -1
View File
@@ -10,4 +10,9 @@ def send_text(text: str):
def send_image(image_path: str):
if not os.path.exists(image_path):
raise Exception(f"Image file not found: {image_path}")
print(f"[ASTRBOT_IMAGE_OUTPUT#{_get_magic_code()}]: {image_path}")
print(f"[ASTRBOT_IMAGE_OUTPUT#{_get_magic_code()}]: {image_path}")
def send_file(file_path: str):
if not os.path.exists(file_path):
raise Exception(f"File not found: {file_path}")
print(f"[ASTRBOT_FILE_OUTPUT#{_get_magic_code()}]: {file_path}")