多渠道批量发送消息
batch_send_messageBroadcast a single message to multiple PushPlus channels at once, specifying up to five channels and per-channel options. For form/doc/excel/webdiff templates, include the required pushId.
Instructions
通过 pushplus /batchSend 接口同时向多个渠道发送消息。channel 用逗号隔开(最多5个),option 与 channel 一一对应。form/doc/excel/webdiff 模板必须传 pushId。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 好友令牌,多人用逗号隔开 | |
| pre | No | 预处理编码,仅供会员使用 | |
| icon | No | 消息图标 | |
| title | No | 消息标题 | |
| topic | No | 群组编码,不填仅发送给自己;channel为webhook时无效 | |
| option | No | 渠道配置参数(原webhook参数),多个渠道时用逗号隔开,与channel一一对应。如:",config1," | |
| pushId | No | form/doc/excel/webdiff 模板必填的详情页ID | |
| channel | No | 发送渠道,多个用逗号隔开。如:"wechat,webhook,mail" | |
| content | Yes | 具体消息内容,根据不同template支持不同格式 | |
| template | No | 发送模板 | |
| timestamp | No | 毫秒时间戳。服务器时间戳大于此时间戳,则消息不会发送 | |
| callbackUrl | No | 发送结果回调地址 |