SpringBoot集成企业https://zeeklog.com自建应用消息

企业微信消息发送指南
目录
参考文档
本文档旨在帮助您快速上手企业微信的消息发送功能。您可以根据以下示例和说明,编写和发送不同类型的消息。
目录
创建消息模板
在企业微信管理后台,您可以创建自定义的消息模板,并根据需要进行编辑。以下是一些常用的消息类型示例。
消息类型
文本消息
{
"text": {
"content": "您好,这是一条文本消息"
},
"agentid": "1000055",
"touser": "@all",
"msgtype": "text"
}
卡片文本消息
{
"textcard": {
"description": "<div class=\"gray\">2016年9月26日</div> <div class=\"normal\">恭喜你抽中iPhone 7一台,领奖码:xxxx</div><div class=\"highlight\">请于2016年10月10日前联系行政同事领取</div>",
"title": "领奖通知",
"btntxt": "更多",
"url": "https://www.baidu.com"
},
"agentid": "1000055",
"touser": "@all",
"msgtype": "textcard"
}
图文消息
{
"news": {
"articles": [{
"picurl": "http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png",
"description": "今年中秋节公司有豪礼相送",
"title": "中秋节礼品领取",
"url": "https://www.baidu.com"
}]
},
"agentid": "1000055",
"touser": "@all",
"msgtype": "news"
}
Markdown 消息
{
"markdown": {
"content": "您的会议室已经预定,稍后会同步到`邮箱`\n >**事项详情** \n >事 项:@miglioguan \n >参与者:@miglioguan、@kunliu、@jamdeezhou、@kanexiong、@kisonwang \n > \n >会议室:@miglioguan、@kunliu、@jamdeezhou、@kanexiong、@kisonwang \n >日 期:2018年5月18日 \n >时 间:上午9:00-11:00 \n > \n >请准时参加会议。 \n > \n >如需修改会议信息,请点击:[修改会议信息](https://work.weixin.qq.com)"
},
"agentid": "1000055",
"touser": "@all",
"msgtype": "markdown"
}
图片
![]
<img src="https://qiniu.meowparty.cn/coder.2023/2025-01-23/Lesson-ecb22f48c0c.png" alt="企业微信消息示例">
<img src="https://qiniu.meowparty.cn/coder.2023/2025-01-23/Lesson-c369aee2c22f2.png" alt="企业微信消息示例">
<img src="https://qiniu.meowparty.cn/coder.2023/2025-01-23/Lesson-1e4a3b0732282.png" alt="企业微信消息示例">
参考文档
本文档旨在帮助您快速上手企业微信的消息发送功能。您可以根据以下示例和说明,编写和发送不同类型的消息。