public class WxCpGroupRobotServiceImpl extends Object implements WxCpGroupRobotService
| 构造器和说明 |
|---|
WxCpGroupRobotServiceImpl() |
public void sendText(String content, List<String> mentionedList, List<String> mobileList) throws WxErrorException
WxCpGroupRobotServicesendText 在接口中 WxCpGroupRobotServicecontent - 文本内容,最长不超过2048个字节,必须是utf8编码mentionedList - userId的列表,提醒群中的指定成员(@某个成员),@all表示提醒所有人,如果开发者获取不到userId,可以使用mentioned_mobile_listmobileList - 手机号列表,提醒手机号对应的群成员(@某个成员),@all表示提醒所有人WxErrorException - 异常public void sendMarkDown(String content) throws WxErrorException
WxCpGroupRobotServicesendMarkDown 在接口中 WxCpGroupRobotServicecontent - markdown内容,最长不超过4096个字节,必须是utf8编码WxErrorException - 异常public void sendImage(String base64, String md5) throws WxErrorException
WxCpGroupRobotServicesendImage 在接口中 WxCpGroupRobotServicebase64 - 图片内容的base64编码md5 - 图片内容(base64编码前)的md5值WxErrorException - 异常public void sendNews(List<NewArticle> articleList) throws WxErrorException
WxCpGroupRobotServicesendNews 在接口中 WxCpGroupRobotServicearticleList - 图文消息,支持1到8条图文WxErrorException - 异常Copyright © 2020. All rights reserved.