public class ApiSendMsgReqV1 extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ApiSendMsgReqV1.ApiSendButtonV1 |
static class |
ApiSendMsgReqV1.ApiSendContentV1 |
| 构造器和说明 |
|---|
ApiSendMsgReqV1() |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiSendMsgReqV1 |
addButton(String text,
Integer actionType,
String url,
String value)
添加一个按钮
该方法可多次调用,在类型方法调用之后调用
|
ApiSendMsgReqV1 |
File(String recvType,
String recvId,
String fileName,
String fileUrl)
文件消息
该方法只能调用一次,并且与其他类型方法互斥
|
ApiSendMsgReqV1 |
Image(String recvType,
String recvId,
String imageUrl)
图片消息
|
ApiSendMsgReqV1 |
Markdown(String recvType,
String recvId,
String text)
Markdown消息
|
ApiSendMsgReqV1 |
Text(String recvType,
String recvId,
String text)
文本消息
|
public ApiSendMsgReqV1 Text(String recvType, String recvId, String text)
recvType - RecvTypeConstant.recvId - 当为USER时,填用户ID,当为GROUP时,填群IDtext - 消息内容public ApiSendMsgReqV1 Image(String recvType, String recvId, String imageUrl)
recvType - RecvTypeConstant.recvId - 当为USER时,填用户ID,当为GROUP时,填群IDimageUrl - 图片网络直链public ApiSendMsgReqV1 Markdown(String recvType, String recvId, String text)
recvType - RecvTypeConstant.recvId - 当为USER时,填用户ID,当为GROUP时,填群IDtext - md消息内容public ApiSendMsgReqV1 File(String recvType, String recvId, String fileName, String fileUrl)
recvType - RecvTypeConstant.recvId - 当为USER时,填用户ID,当为GROUP时,填群IDfileName - 文件名fileUrl - 文件网络直链public ApiSendMsgReqV1 addButton(String text, Integer actionType, String url, String value)
text - 按钮上的文字actionType - ButtonActionTypeConstant.url - 当actionType为JUMP_URL时使用,其他时候传NULLvalue - 当actionType为COPY、REPORT时使用,其他时候传NULLCopyright © 2023. All rights reserved.