兼容linux
This commit is contained in:
@@ -3,6 +3,7 @@ from typing import Dict, Any, List, Optional, Tuple
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from plugin_common.message_plugin_interface import MessagePluginInterface
|
from plugin_common.message_plugin_interface import MessagePluginInterface
|
||||||
from plugin_common.plugin_interface import PluginStatus
|
from plugin_common.plugin_interface import PluginStatus
|
||||||
@@ -109,7 +110,7 @@ class VideoManPlugin(MessagePluginInterface):
|
|||||||
return False, "视频下载失败"
|
return False, "视频下载失败"
|
||||||
|
|
||||||
# 发送视频
|
# 发送视频
|
||||||
result = await self.bot.send_video_message((roomid if roomid else sender), file_abspath)
|
result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath))
|
||||||
self.LOG.info(f"发送视频结果: {result}")
|
self.LOG.info(f"发送视频结果: {result}")
|
||||||
return True, "发送成功"
|
return True, "发送成功"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user