📬 TG Notify 管理

Telegram 通知服务管理界面

发送通知

任务配置

⚡ 快速发送

📋 URL 快速发送

直接通过 URL 发送消息:

/send?key=你的KEY&msg=消息内容

# 带标题
/send?key=你的KEY&title=标题&msg=内容&status=success

# 示例
https://your-worker.dev/send?key=xxx&msg=测试消息

Python 调用:

import requests

# 简单发送
requests.get("https://your-worker.dev/send", params={
    "key": "your-api-key",
    "msg": "Hello World!"
})

# 发送图片
with open("image.jpg", "rb") as f:
    requests.post("https://your-worker.dev/send/photo?key=your-key",
        files={"photo": f},
        data={"caption": "图片说明"}
    )

API 文档

POST /notify

发送通知到 Telegram

// Python 示例
import requests

requests.post("https://your-worker.workers.dev/notify",
    headers={"X-API-Key": "your-key"},
    json={
        "task_id": "wxread",
        "title": "微信读书",
        "content": "阅读时长: 30分钟",
        "status": "success"
    }
)

GET /calendar

获取日历数据

GET /calendar?year=2024&month=1&key=your-key

GET /records

获取通知记录

GET /records?days=7&task_id=wxread&key=your-key

GET /day/:date

获取某天详情

GET /day/2024-01-15?key=your-key