# 发送频道图片消息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /chatroom/v2/channel_msg/send:
    post:
      summary: 发送频道图片消息
      deprecated: false
      description: ''
      tags:
        - HTTP接口/消息接口
      parameters:
        - name: client_type
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: x_client_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: os_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: x_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: x_app
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: chat_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: chat_version
          in: query
          description: 客户端版本号,不同版本返回的结果可能有区别
          required: true
          example: 1.30.0
          schema:
            type: string
            default: 1.30.0
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json;charset=UTF-8
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/%E9%A2%91%E9%81%93%E6%B6%88%E6%81%AF%E5%8F%91%E9%80%81%E5%9B%BE%E7%89%87
            example:
              heychat_ack_id: '0'
              msg_type: 3
              img: https://chat.max-c.com/pic/1793554163917103104.png
              addition: >-
                {"img_files_info":[{"url":"https://chat.max-c.com/pic/1793554163917103104.png","width":194,"height":228}]}
              channel_id: '3377790315288076288'
              room_id: '3365307913282265088'
              reply_id: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  result:
                    type: object
                    properties:
                      chatmobile_ack_id:
                        type: string
                      heychat_ack_id:
                        type: string
                    required:
                      - chatmobile_ack_id
                      - heychat_ack_id
                    x-apifox-orders:
                      - chatmobile_ack_id
                      - heychat_ack_id
                    x-apifox-ignore-properties: []
                  status:
                    type: string
                required:
                  - msg
                  - result
                  - status
                x-apifox-orders:
                  - msg
                  - result
                  - status
                x-apifox-ignore-properties: []
          headers: {}
          x-apifox-name: 成功
      security:
        - apikey-header-token: []
      x-apifox-folder: HTTP接口/消息接口
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/4856361/apis/api-196181766-run
components:
  schemas:
    频道消息发送图片:
      type: object
      properties:
        msg:
          type: string
          description: 文字消息内容
          x-apifox-mock: '"https://chat.max-c.com/pic/1793554163917103104.png"'
        msg_type:
          type: integer
          description: '消息类型： 1: 文本 3: 图片 4: markdown 10: 支持AT的markdown'
          x-apifox-mock: '3'
        heychat_ack_id:
          type: string
          description: 防止重复发送,建议维护一个全局唯一递增的值
        reply_id:
          type: string
          description: 回复的消息ID
        room_id:
          type: string
          description: 发送消息的房间ID
        addition:
          type: string
          description: 需要用json.dumps转换成字符串再填充, 图片建议在addition添加width和height
          x-apifox-mock: >-
            "{\"img_files_info\":[{\"url\":\"https://chat.max-c.com/pic/1793554163917103104.png\",\"width\":194,\"height\":228}]}"
        at_user_id:
          type: string
          description: AT的用户ID列表"123,234"
        at_role_id:
          type: string
          description: AT的角色ID列表"123,234"
        mention_channel_id:
          type: string
          description: 提及的频道ID"123456",可以直接跳转到某个频道
        channel_id:
          type: string
          description: 发送消息的频道ID
        img:
          type: string
          description: 图片地址发送图片时是必须
      required:
        - msg
        - msg_type
        - heychat_ack_id
        - room_id
        - addition
        - channel_id
      x-apifox-orders:
        - msg
        - msg_type
        - heychat_ack_id
        - reply_id
        - room_id
        - addition
        - at_user_id
        - at_role_id
        - mention_channel_id
        - channel_id
        - img
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    token:
      type: apikey
      in: header
      name: token
      token: ODYzNzY0NDM7MTc1NTc1OTk1NzYyODYzNjQ0NzsxNTU0MDM2NTkxNzk2OTM1OTY5
    apikey-header-token:
      type: apiKey
      in: header
      name: token
servers:
  - url: http://prod-cn.your-api-server.com
    description: 正式环境
security:
  - apikey-header-token: []

```
