Telepush

HTTP → Telegram 消息推送网关。通过 HTTP API 将消息推送到 Telegram 聊天。

推送消息

POST /api/push
Content-Type: application/json

{
  "message": "你好,这是一条测试消息",
  "topic": "default"
}

curl 示例

curl -X POST https://push.zcoder.me/api/push \
  -H 'Content-Type: application/json' \
  -d '{"message": "hello from curl"}'

Bot 命令

在 Telegram 中向 Bot 发送以下命令:

Topic 说明

Topic 是消息的路由目标,一个 topic 对应一个 Telegram 聊天(可以是私聊、群组或超级群的话题线程)。

  1. 在目标聊天中发送 /init_topic mytopic 注册 topic
  2. 推送时指定 "topic": "mytopic" 即可发送到该聊天