feat:noreply不考虑command

This commit is contained in:
SengokuCola
2025-07-15 21:37:32 +08:00
parent 22337ee2f4
commit a150aa7b2b
10 changed files with 33 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ def get_raw_msg_by_timestamp_with_chat(
limit: int = 0,
limit_mode: str = "latest",
filter_bot=False,
filter_command=False,
) -> List[Dict[str, Any]]:
"""获取在特定聊天从指定时间戳到指定时间戳的消息,按时间升序排序,返回消息列表
limit: 限制返回的消息数量0为不限制
@@ -46,7 +47,12 @@ def get_raw_msg_by_timestamp_with_chat(
sort_order = [("time", 1)] if limit == 0 else None
# 直接将 limit_mode 传递给 find_messages
return find_messages(
message_filter=filter_query, sort=sort_order, limit=limit, limit_mode=limit_mode, filter_bot=filter_bot
message_filter=filter_query,
sort=sort_order,
limit=limit,
limit_mode=limit_mode,
filter_bot=filter_bot,
filter_command=filter_command,
)