# sendServiceAccountNotice
发送服务号公告。
# 输入
继承标准对象输入,扩展属性描述
| 名称 | 数据类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| accountId | string | 是 | 服务号id | |
| bulletinType | Int | 否 | 公告类型(1文字,2图片,3语音) |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
app.link.startContactSingleSelector(
result => {
app.link.sendServiceAccountNotice(
result.id,
example_bulletinType
);
},
error => {
bui.alert(error);
},
'请选择服务号',
'8'
);