---
title: "通知管道"
description: "11 種通知管道各自的填寫欄位：電子郵件、Telegram、飛書 / Lark、釘釘、企業微信、Bark、ntfy、Server醬、Discord、Slack、自訂 Webhook。"
lang: "zh-TW"
version: "1.84.0"
url: "https://docs.calends.date/zh-tw/calendar/channels/"
markdown_url: "https://docs.calends.date/zh-tw/calendar/channels.md"
section: "行事曆與提醒"
llms_index: "https://docs.calends.date/llms.txt"
llms_full: "https://docs.calends.date/llms-full.txt"
agents_guide: "https://calends.date/AGENTS.md"
---

# 通知管道

> 11 種通知管道各自的填寫欄位：電子郵件、Telegram、飛書 / Lark、釘釘、企業微信、Bark、ntfy、Server醬、Discord、Slack、自訂 Webhook。

- Canonical page: https://docs.calends.date/zh-tw/calendar/channels/
- Markdown source: https://docs.calends.date/zh-tw/calendar/channels.md
- Calends version: v1.84.0

為自動提醒配置電子郵件、聊天機器人或 Webhook 管道；完成本頁設定後，提醒才能順利送達。

同一則提醒會同時發送到所有已啟用的管道。在「設定 → 通知管道」點選「新增管道」，選擇類型並填寫欄位後儲存。每個管道各有獨立名稱與「啟用」開關，右側「測試」按鈕僅對該單一管道傳送測試訊息，尚未儲存前即可先行測試。

管道的網址與權杖儲存在伺服器端，提供給已登入的應用使用，絕不會傳送至公開頁；匯出完整備份時會包含這些設定。

若帳本從未設定過通知管道，但在舊版設定中曾填過通知信箱，系統會自動將該信箱視為唯一的電子郵件管道。

1. 前往「設定 → 通知管道」，點選「新增管道」。
2. 挑選類型，依下表填寫必要欄位後點選「測試」（此操作會真實送出一則訊息）。
3. 確認收到測試訊息後儲存，並保持「啟用」開啟。

## 電子郵件

| 欄位 | 說明 |
| --- | --- |
| 收件信箱 | 接收提醒的電子郵件地址。 |

郵件透過 [Cloudflare Email Sending](https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/) 寄出，部署時須配置 `EMAIL` 綁定與 `MAIL_FROM` 寄件位址，且寄件網域須已在 Cloudflare 完成驗證。若伺服器未配置郵件寄送，傳送時會提示尚未設定，請改用其他管道。配置步驟詳見 [Cloudflare Workers + D1](https://docs.calends.date/zh-tw/self-host/cloudflare.md#郵件提醒)。

Docker 與 Linux（systemd）自託管部署不含 Cloudflare Email Sending，無法直接寄送電子郵件；如需透過外部 SMTP 中繼或自動化服務寄信，可使用下方**自訂 Webhook** 管道中的 `html` 正文，或在私有／內網部署下使用 `inlineHtml` 與 `attachments`（CID 內嵌圖片附件）。

## Telegram

| 欄位 | 說明 |
| --- | --- |
| Bot Token | 向 [@BotFather](https://t.me/BotFather) 建立機器人，取得形如 `123456:ABC…` 的權杖。 |
| Chat ID | 你的使用者 ID 或群組 ID。請先傳送一則訊息給機器人，再透過 @userinfobot 查詢自己的 ID。 |

訊息採 Telegram HTML 格式，上限 4000 個字元。

## 飛書 / Lark

| 欄位 | 說明 |
| --- | --- |
| Webhook 網址 | 群組設定 → 群組機器人 → 新增自訂機器人，複製 `https://open.feishu.cn/open-apis/bot/v2/hook/…` 網址。 |
| 簽名密鑰 | 選填。機器人啟用「簽名驗證」時填寫。 |

以互動卡片形式發送，底部附帶開啟應用的按鈕。

## 釘釘

| 欄位 | 說明 |
| --- | --- |
| Webhook 網址 | 群組設定 → 機器人 → 自訂機器人，複製 `https://oapi.dingtalk.com/robot/send?access_token=…` 網址。 |
| 加簽密鑰 | 選填。機器人安全設定勾選「加簽」時填寫，開頭為 `SEC`。 |

若機器人安全設定採用「自訂關鍵字」，請填入提醒內文必定包含的字詞（例如「訂閱」）。

## 企業微信

| 欄位 | 說明 |
| --- | --- |
| Webhook 網址 | 群組 → 新增群組機器人，複製 `https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=…` 網址。 |

以 Markdown 訊息傳送，上限 4000 個字元。

## Bark

| 欄位 | 說明 |
| --- | --- |
| Device Key | 在 iPhone 安裝 Bark，自 App 中複製 Key。 |
| 伺服器 | 選填，自架 Bark 伺服器位址，預設為 `https://api.day.app`。 |

## ntfy

| 欄位 | 說明 |
| --- | --- |
| Topic | 隨意取一個不易被猜到的名稱，並在手機 ntfy App 中訂閱相同 Topic。 |
| 伺服器 | 選填，預設為 `https://ntfy.sh`。 |
| 存取權杖 | 選填。自架或受保護的伺服器需要驗證時填寫，將以 `Authorization: Bearer` 傳送。 |

## Server醬

| 欄位 | 說明 |
| --- | --- |
| SendKey | Server醬 Turbo 為 `SCT…`，Server醬³ 為 `sctp…`。Calends 會依前綴自動選擇對應端點。 |

推播至微信。

## Discord

| 欄位 | 說明 |
| --- | --- |
| Webhook 網址 | 伺服器設定（或頻道設定）→ 整合 → Webhook，複製 `https://discord.com/api/webhooks/…` 網址。 |

以 Embed 訊息格式送出。

## Slack

| 欄位 | 說明 |
| --- | --- |
| Webhook 網址 | 在 Slack App 中啟用 Incoming Webhooks，複製 `https://hooks.slack.com/services/…` 網址。 |

## 自訂 Webhook

| 欄位 | 說明 |
| --- | --- |
| URL | 接收提醒的目標網址。 |
| 額外請求標頭 | 選填，僅支援單一標頭，格式為 `名稱: 值`，例如 `Authorization: Bearer …`。 |

Calends 會以 `POST` 傳送以下 JSON 結構：

```json
{
  "subject": "訂閱提醒｜……",
  "intro": "目前每月訂閱支出 ……，N 項計費中。",
  "kind": "daily",
  "sections": [
    { "heading": "即將扣款", "rows": [{ "title": "……", "amount": "……", "sub": "……" }] }
  ],
  "text": "純文字版本",
  "markdown": "Markdown 版本",
  "html": "響應式 HTML 提醒郵件正文",
  "inlineHtml": "站內圖示改寫為 cid: 引用的 HTML 提醒郵件正文",
  "attachments": [
    { "cid": "logo@calends", "filename": "logo.png", "contentType": "image/png", "encoding": "base64", "content": "……" }
  ],
  "url": "https://calends.example.com"
}
```

`kind` 為 `daily`（每日提醒）、`monthly`（每月帳單預告）或 `test`（測試）。`text`、`markdown` 與 `html` 皆為已排版完成的全文，可直接轉發至其他服務——其中 `html` 為 Calends 內建響應式提醒郵件正文（若僅使用 `html` 而不附帶內嵌附件，建議設定外部可存取的 `SITE_URL`）。針對僅內網執行或郵件服務商會代理遠端圖片的情境，負載另提供 `inlineHtml`（站內圖示改寫為 `cid:` 引用）與 `attachments`（品牌與內建訂閱／付款圖示的 base64 清單 `{ cid, filename, contentType, encoding, content }`），中繼無須公開暴露 Calends 即可透過 CID 內嵌附件寄信；`sections` 為結構化資料，便於自行二次排版。

## 傳送失敗怎麼辦

- 點選管道旁的「測試」，若失敗介面會直接顯示服務端回傳的錯誤訊息。
- 多數機器人介面即使發生錯誤仍回傳 HTTP 200，Calends 會進一步檢查回應主體內的錯誤碼（例如釘釘與企業微信的 `errcode`、飛書與 Server醬的 `code`、Telegram 的 `ok`），並呈現實際原因。
- 若有必填欄位留空，系統會明確提示該管道缺少哪個欄位。

---

## Related Pages & Global AI Discovery

To explore broader context beyond this page, fetch any of the Markdown or plain-text resources below directly:

### Same Section (行事曆與提醒)
- [行事曆](https://docs.calends.date/zh-tw/calendar/calendar.md)
- [提醒規則](https://docs.calends.date/zh-tw/calendar/reminders.md)
- [通知管道](https://docs.calends.date/zh-tw/calendar/channels.md) *(current)*

### Reading Order
- Previous: [提醒規則](https://docs.calends.date/zh-tw/calendar/reminders.md)
- Next: [內建助手](https://docs.calends.date/zh-tw/ai/assistant.md)

### Global Calends Resources
- Read-only Docs MCP Server (zero auth Streamable HTTP): https://docs.calends.date/mcp
- Complete Docs Index (all 37 topics with `.md` links): https://docs.calends.date/llms.txt
- Complete English Docs Bundle (single file): https://docs.calends.date/llms-full.txt
- Complete Simplified Chinese Docs Bundle: https://docs.calends.date/llms-zh.txt
- Docs AI Agent Guide: https://docs.calends.date/AGENTS.md
- Product Website Overview (Markdown): https://calends.date/zh-tw/index.md
- Product LLMs Index & Full Reference: https://calends.date/llms.txt | https://calends.date/llms-full.txt
- Deployment & MCP Agent Guide (AGENTS.md): https://calends.date/AGENTS.md
- FAQ & Calends vs Wallos Comparison (Markdown): https://calends.date/en/faq.md | https://calends.date/en/compare.md
- Complete Changelog (Markdown): https://calends.date/en/releases.md
