# 批量发送指令

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /wework/sendRawMessage:
    post:
      summary: 批量发送指令
      deprecated: false
      description: |-
        **功能介绍：**
        - 可以将多条发送指令合并在一个请求当中，提高网络效率
        - 单次调用该接口可合并最多100条指令
        - 此接口可解决并发请求太多导致被服务器拦截的问题
        - 指令消息IP请求频率不可超过60QPM

        **注：**
        1. 【指令消息】目录下的所有指令均可合并
      tags:
        - 指令消息
      parameters:
        - name: robotId
          in: query
          description: 客户端链接唯一标识
          required: true
          example: '{{robot_id}}'
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                socketType:
                  type: integer
                  description: 通讯类型 固定值=2
                list:
                  type: array
                  items:
                    type: object
                    properties: {}
                    x-apifox-orders: []
              required:
                - socketType
                - list
              x-apifox-orders:
                - socketType
                - list
            example:
              socketType: 2
              list:
                - type: 203
                  titleList:
                    - AA
                  receivedContent: 第一条发送文本消息指令
                - type: 203
                  titleList:
                    - AA
                  receivedContent: 第二条发送文本消息指令
                - type: 218
                  titleList:
                    - BB
                  objectName: logo.png
                  fileUrl: https://cdn.asrtts.cn/static/image/logo3_180_raw.png
                  fileType: image
                  extraText: 第三条发送文件消息指令
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                  message:
                    type: string
                  data:
                    type: string
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 指令消息
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1035094/apis/api-147612959-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.worktool.ymdyes.cn
    description: 正式环境
security: []

```
