Skip to content
On this page

推送模板消息

功能

推送模板消息接口,支持推送文本消息。

接口地址

/template/{chatToken}

参数说明

参数类型必须说明
templateIdString模板id
titleString标题
textString内容

使用示例

bash
# using get
# 推送消息
curl -X GET https://pushbot.dev/template/{chatToken}?templateId=1&title=HelloWorld&text=HelloWorld

# using post
# 推送消息
curl -d '{"templateId":"1", "title":"Hi"}' -X POST https://pushbot.dev/template/{chatToken}