类 ApiSendMsgBatchReqV1

java.lang.Object
cn.daenx.yhchatsdk.framework.vo.v1.req.ApiSendMsgBatchReqV1

public class ApiSendMsgBatchReqV1 extends Object
批量发送消息请求体
作者:
DaenMax
  • 构造器详细资料

    • ApiSendMsgBatchReqV1

      public ApiSendMsgBatchReqV1()
  • 方法详细资料

    • Text

      public ApiSendMsgBatchReqV1 Text(String recvType, List<String> recvIds, String text)
      文本消息
      参数:
      recvType - RecvTypeConstant.
      recvIds - 当为USER时,填用户ID,当为GROUP时,填群ID
      text - 消息内容
      返回:
    • Image

      public ApiSendMsgBatchReqV1 Image(String recvType, List<String> recvIds, String imageUrl)
      图片消息
      参数:
      recvType - RecvTypeConstant.
      recvIds - 当为USER时,填用户ID,当为GROUP时,填群ID
      imageUrl - 图片网络直链
      返回:
    • Markdown

      public ApiSendMsgBatchReqV1 Markdown(String recvType, List<String> recvIds, String text)
      Markdown消息
      参数:
      recvType - RecvTypeConstant.
      recvIds - 当为USER时,填用户ID,当为GROUP时,填群ID
      text - md消息内容
      返回:
    • File

      public ApiSendMsgBatchReqV1 File(String recvType, List<String> recvIds, String fileName, String fileUrl)
      文件消息 该方法只能调用一次,并且与其他类型方法互斥
      参数:
      recvType - RecvTypeConstant.
      recvIds - 当为USER时,填用户ID,当为GROUP时,填群ID
      fileName - 文件名
      fileUrl - 文件网络直链
      返回:
    • addButton

      public ApiSendMsgBatchReqV1 addButton(String text, Integer actionType, String url, String value)
      添加一个按钮 该方法可多次调用,在类型方法调用之后调用
      参数:
      text - 按钮上的文字
      actionType - ButtonActionTypeConstant.
      url - 当actionType为JUMP_URL时使用,其他时候传NULL
      value - 当actionType为COPY、REPORT时使用,其他时候传NULL
      返回: