0wQ / telegram-notify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Notify

部署方式

Vercel (推荐)

Vercel 分配的域名在**大陆无法访问, 需使用自定义域名, 并修改 CNAME 记录为 cname-china.vercel-dns.com.

Deploy with Vercel

本地运行

npm i
npm run build
npm run start
# or
pnpm i
pnpm run build
pnpm run start

API

GET http://example.com/api
    ?token=这里是token
    &chat_id=这里是chat_id
    &text=这里是内容
POST http://example.com/api
Content-Type: application/x-www-form-urlencoded

token=这里是token
&chat_id=这里是chat_id
&text=这里是内容
POST http://example.com/api
Content-Type: application/json

{
    "token": "这里是token",
    "chat_id": "这里是chat_id",
    "text": "这里是内容"
}
POST http://example.com/api
Content-Type: text/plain
X-Token: 这里是token
X-Chat-Id: 这里是chat_id

这里是内容
POST http://example.com/api
    ?token=这里是token
    &chat_id=这里是chat_id
Content-Type: text/plain

这里是内容

About


Languages

Language:TypeScript 61.6%Language:CSS 36.6%Language:JavaScript 1.8%