新增消息类型:语音,视频
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user