public interface WxCpGroupRobotService
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | sendFile(String webhookUrl,
        String mediaId)发送文件类型的消息 | 
| void | sendImage(String base64,
         String md5)发送image类型的消息 | 
| void | sendImage(String webhookUrl,
         String base64,
         String md5)发送image类型的消息 | 
| void | sendMarkdown(String content)发送markdown类型的消息 | 
| void | sendMarkdown(String webhookUrl,
            String content)发送markdown类型的消息 | 
| void | sendNews(List<NewArticle> articleList)发送news类型的消息 | 
| void | sendNews(String webhookUrl,
        List<NewArticle> articleList)发送news类型的消息 | 
| void | sendTemplateCardMessage(String webhookUrl,
                       WxCpGroupRobotMessage wxCpGroupRobotMessage)发送模板卡片消息 | 
| void | sendText(String content,
        List<String> mentionedList,
        List<String> mobileList)发送text类型的消息 | 
| void | sendText(String webhookUrl,
        String content,
        List<String> mentionedList,
        List<String> mobileList)发送text类型的消息 | 
| void | sendVoice(String webhookUrl,
         String mediaId)发送文件类型的消息 | 
void sendText(String content, List<String> mentionedList, List<String> mobileList) throws WxErrorException
content - 文本内容,最长不超过2048个字节,必须是utf8编码mentionedList - userId的列表,提醒群中的指定成员(@某个成员),@all表示提醒所有人,如果开发者获取不到userId,可以使用mentioned_mobile_listmobileList - 手机号列表,提醒手机号对应的群成员(@某个成员),@all表示提醒所有人WxErrorException - 异常void sendMarkdown(String content) throws WxErrorException
content - markdown内容,最长不超过4096个字节,必须是utf8编码WxErrorException - 异常void sendImage(String base64, String md5) throws WxErrorException
base64 - 图片内容的base64编码md5 - 图片内容(base64编码前)的md5值WxErrorException - 异常void sendNews(List<NewArticle> articleList) throws WxErrorException
articleList - 图文消息,支持1到8条图文WxErrorException - 异常void sendText(String webhookUrl, String content, List<String> mentionedList, List<String> mobileList) throws WxErrorException
webhookUrl - webhook地址content - 文本内容,最长不超过2048个字节,必须是utf8编码mentionedList - userId的列表,提醒群中的指定成员(@某个成员),@all表示提醒所有人,如果开发者获取不到userId,可以使用mentioned_mobile_listmobileList - 手机号列表,提醒手机号对应的群成员(@某个成员),@all表示提醒所有人WxErrorException - 异常void sendMarkdown(String webhookUrl, String content) throws WxErrorException
webhookUrl - webhook地址content - markdown内容,最长不超过4096个字节,必须是utf8编码WxErrorException - 异常void sendImage(String webhookUrl, String base64, String md5) throws WxErrorException
webhookUrl - webhook地址base64 - 图片内容的base64编码md5 - 图片内容(base64编码前)的md5值WxErrorException - 异常void sendNews(String webhookUrl, List<NewArticle> articleList) throws WxErrorException
webhookUrl - webhook地址articleList - 图文消息,支持1到8条图文WxErrorException - 异常void sendFile(String webhookUrl, String mediaId) throws WxErrorException
webhookUrl - webhook地址mediaId - 文件idWxErrorException - 异常void sendVoice(String webhookUrl, String mediaId) throws WxErrorException
webhookUrl - webhook地址mediaId - 语音文件idWxErrorException - 异常void sendTemplateCardMessage(String webhookUrl, WxCpGroupRobotMessage wxCpGroupRobotMessage) throws WxErrorException
webhookUrl - wxCpGroupRobotMessage - WxErrorExceptionCopyright © 2024. All rights reserved.