# Pinchflat接入 Server酱：YouTube 订阅下载完成后微信收到通知（2026 教程）

> Pinchflat 内置 Apprise 通知支持，填入 schan:// 协议地址即可推送通知到微信。

- 网页版：https://sct.ftqq.com/docs/integrations/pinchflat/
- 更新日期：2026-07-17

# Pinchflat + Server酱：通过 Apprise 推送通知到微信

> 效果：Pinchflat 在相关事件触发时，通过 Server酱 推送通知到微信。

## 前置条件

- 一个 Server酱 SendKey（SCT 开头），获取方式见 [30 秒获取 SendKey](https://sct.ftqq.com/docs/getting-started/sendkey/)。如需推送到企业微信/钉钉/飞书群，参考 [通道配置](https://sct.ftqq.com/docs/getting-started/channels/)。
- 已部署的 Pinchflat 实例。Pinchflat 是自托管的 YouTube 媒体下载/订阅管理器，其 Docker 镜像内置 apprise CLI，无需额外安装通知组件。

## 配置步骤

1. 在 Pinchflat 的 Settings 页面找到 Apprise Server / Notification 设置区域，在通知地址栏填入：

```
schan://你的SENDKEY
```

将 `你的SENDKEY` 替换为你的 Server酱 SendKey（SCT 开头）。`schan://` 是 Apprise 中 Server酱的专用协议，底层调用 `https://sctapi.ftqq.com/你的SENDKEY.send`。

2. 保存设置后，Pinchflat 会在相关事件发生时推送通知。

3. 如需命令行自测，可在安装了 apprise 的环境中执行：

```bash
pip install apprise
apprise -t "测试" -b "正文" "schan://你的SENDKEY"
```

收到微信消息说明 SendKey 和通道均正常。

## 常见问题

**免费额度够用吗？**

Server酱免费版每天 5 条，每分钟上限 50 条。Pinchflat 触发通知的频率通常远低于每日上限。订阅会员目前特价最低 3 元/月，一天最多可发 1000 条（[价格详情](https://sct.ftqq.com/subscribe)）。

**配置后没收到消息怎么办？**

先用命令行 `apprise -vv` 自测确认 SendKey 有效；再检查 Pinchflat 日志中是否有通知发送记录。更多排查见 [常见问题与排查](https://sct.ftqq.com/docs/getting-started/faq/)。

**Server酱³（sctp 开头）的 SendKey 能用吗？**

`schan://` 协议仅对接 Server酱Turbo（SCT 开头）。Server酱³（sctp 开头）暂无专用 Apprise 插件，可用通用 `json://` 插件直连 push.ft07.com API，通用接法详见 [Apprise 接入](https://sct.ftqq.com/docs/integrations/apprise/)。

**通知频率有限制吗？**

Server酱每分钟上限 50 条。如果 Pinchflat 短时间内触发大量通知，可能超过该上限，建议合理设置订阅更新频率。

## 相关集成

- [/integrations/qinglong/](https://sct.ftqq.com/docs/integrations/qinglong/) —— 青龙面板任务通知
- [/integrations/python/](https://sct.ftqq.com/docs/integrations/python/) —— Python 脚本推送
- [/integrations/uptime-kuma/](https://sct.ftqq.com/docs/integrations/uptime-kuma/) —— Uptime Kuma 宕机告警


## 懒人方案：把这段话复制给你的 AI 助手

把下面这段文字原样粘贴给 Claude Code、Cursor 或任何 AI 编程助手，它就会替你完成 Server酱 的接入：

```text
请帮我把 Server酱 微信通知接入到我当前的项目/工具中：
1. API：POST https://sctapi.ftqq.com/{SendKey}.send，参数 title（必填，不能含换行）、desp（正文，支持 Markdown，可选）；成功时返回 JSON 的 code 为 0。
2. 如果我的 SendKey 以 sctp 开头，则改用 https://{uid}.push.ft07.com/send/{SendKey}.send，uid 是 SendKey 中 sctp 与 t 之间的数字。
3. SendKey 从环境变量 SERVERCHAN_SENDKEY 读取；如果没有，提醒我到 https://sct.ftqq.com 免费获取（每天 5 条额度）。
4. 安全要求：不要把 SendKey 硬编码进代码、不要打印到日志、不要提交到 git。
5. 频率约定：任务结束发 1 条结果摘要即可，批量任务合并成一条，不要每步都推。
请根据我当前的项目和场景直接写好代码/配置并验证。
```

