使用path 进行预览发送
This commit is contained in:
@@ -3,6 +3,7 @@ from datetime import datetime
|
||||
from typing import Dict, Any, List, Optional, Tuple
|
||||
|
||||
from loguru import logger
|
||||
from pathlib import Path
|
||||
|
||||
from base.plugin_common.message_plugin_interface import MessagePluginInterface
|
||||
from base.plugin_common.plugin_interface import PluginStatus
|
||||
@@ -169,7 +170,7 @@ class MessagePushTask(MessagePluginInterface):
|
||||
|
||||
# 发送图片消息
|
||||
if content_image:
|
||||
await self.bot.send_image_message(group_id, content_image)
|
||||
await self.bot.send_image_message(group_id, Path(content_image))
|
||||
|
||||
# 发送链接消息
|
||||
if content_link:
|
||||
|
||||
Reference in New Issue
Block a user