From a10add94300c0157c14369ca575af42fafa6194e Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 12 Jun 2025 11:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B6=88=E6=81=AF=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=EF=BC=9A=E8=AF=AD=E9=9F=B3,=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/message_push.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/admin/dashboard/blueprints/message_push.py b/admin/dashboard/blueprints/message_push.py index c90eabe..7ffeb7c 100644 --- a/admin/dashboard/blueprints/message_push.py +++ b/admin/dashboard/blueprints/message_push.py @@ -405,6 +405,14 @@ def api_preview_task(task_id): if task.get('content_image'): send_message_in_thread(server.client.send_image_message, recipient, Path(task['content_image'])) + # 发送语音消息 + if task.get('content_voice'): + send_message_in_thread(server.client.send_voice_message, recipient, Path(task['content_voice'])) + + # 发送视频消息 + if task.get('content_video'): + send_message_in_thread(server.client.send_video_message, recipient, Path(task['content_video'])) + # 发送链接消息 if task.get('content_link'): try: