feat: conditionally save message history based on save_history flag

This commit is contained in:
jxxghp
2026-06-17 21:00:40 +08:00
parent 4c20639abb
commit e1ba9a2c97
12 changed files with 324 additions and 171 deletions
+2
View File
@@ -223,6 +223,8 @@ class Notification(BaseModel):
original_chat_id: Optional[str] = None
# 是否禁用链接预览(仅Telegram支持)
disable_web_page_preview: Optional[bool] = None
# 是否写入消息历史
save_history: bool = True
def to_dict(self):
"""