Add Telegram parse mode support

This commit is contained in:
jxxghp
2026-06-21 10:20:30 +08:00
parent 68f18db374
commit 683e07a102
4 changed files with 302 additions and 46 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
# Telegram 消息格式类型,默认 MarkdownV2,可传 HTML
parse_mode: Optional[str] = None
# 是否写入消息历史
save_history: bool = True