fix:修复发送api打字时间,现已成为可选参数。修复可能存在的回复图片问题,为数据库缺失字段提供警告

This commit is contained in:
SengokuCola
2025-06-14 19:21:02 +08:00
parent e4e14550c7
commit 790642afd6
9 changed files with 37 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ class BaseCommand(ABC):
text=content, user_id=str(chat_stream.user_info.user_id), platform=chat_stream.platform
)
async def send_type(self, message_type: str, content: str, display_message: str = None) -> bool:
async def send_type(self, message_type: str, content: str, display_message: str = None, typing: bool = False) -> bool:
"""发送指定类型的回复消息到当前聊天环境
Args:
@@ -103,6 +103,7 @@ class BaseCommand(ABC):
target_id=str(chat_stream.group_info.group_id),
is_group=True,
display_message=display_message,
typing=typing,
)
else:
# 私聊