diff --git a/admin/dashboard/blueprints/contacts.py b/admin/dashboard/blueprints/contacts.py index f6cfb34..3eb587a 100644 --- a/admin/dashboard/blueprints/contacts.py +++ b/admin/dashboard/blueprints/contacts.py @@ -267,7 +267,7 @@ def api_send_message(): return jsonify({'success': False, 'message': '未上传文件'}) file = request.files['file'] client_msg_id, create_time, new_msg_id = loop.run_until_complete( - server.client.send_voice_message(wxid, file.read()) + server.client.send_voice_message(wxid, file.read(), format="MP3") ) return jsonify({ 'success': True,