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

@@ -31,6 +31,7 @@ class MessageAPI:
target_id: str,
is_group: bool = True,
display_message: str = "",
typing: bool = False,
) -> bool:
"""直接向指定目标发送消息
@@ -113,7 +114,7 @@ class MessageAPI:
)
# 发送消息
sent_msg = await heart_fc_sender.send_message(bot_message, has_thinking=True, typing=False, set_reply=False)
sent_msg = await heart_fc_sender.send_message(bot_message, has_thinking=False, typing=typing, set_reply=False)
if sent_msg:
logger.info(f"{getattr(self, 'log_prefix', '')} 成功发送消息到 {platform}:{target_id}")