# 更新指定的频道消息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /chatroom/v2/channel_msg/update:
    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:
              type: object
              x-apifox-refs:
                01J9R6KM5W6ZW9G24ZQTRB4EGQ:
                  $ref: >-
                    #/components/schemas/%E9%A2%91%E9%81%93%E6%B6%88%E6%81%AF%E5%8F%91%E9%80%81%E5%8F%82%E6%95%B0
                  x-apifox-overrides: {}
              properties:
                msg:
                  type: string
                  description: 文字消息内容
                msg_type:
                  type: integer
                  description: '消息类型： 1: 文本 3: 图片 4: markdown 10: 支持AT的markdown'
                heychat_ack_id:
                  type: string
                reply_id:
                  type: string
                  description: 回复的消息ID
                room_id:
                  type: string
                  description: 发送消息的房间ID
                addition:
                  type: string
                  description: 需要用json.dumps转换成字符串再填充
                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
                msg_id:
                  type: string
                  description: 更新的消息id
              required:
                - msg
                - msg_type
                - heychat_ack_id
                - room_id
                - addition
                - channel_id
                - msg_id
              x-apifox-orders:
                - 01J9R6KM5W6ZW9G24ZQTRB4EGQ
                - msg_id
              x-apifox-ignore-properties:
                - msg
                - msg_type
                - heychat_ack_id
                - reply_id
                - room_id
                - addition
                - at_user_id
                - at_role_id
                - mention_channel_id
                - channel_id
            example:
              msg: '12345'
              msg_type: 4
              heychat_ack_id: '0'
              reply_id: ''
              room_id: '3690041195409809408'
              addition: '{}'
              channel_id: '3690041195638218754'
              msg_id: '1845715947309797376'
      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: []
              example:
                msg: ''
                result:
                  chatmobile_ack_id: ''
                  heychat_ack_id: '0'
                status: ok
          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-221115476-run
components:
  schemas:
    频道消息发送参数:
      type: object
      properties:
        msg:
          type: string
          description: 文字消息内容
        msg_type:
          type: integer
          description: '消息类型： 1: 文本 3: 图片 4: markdown 10: 支持AT的markdown'
        heychat_ack_id:
          type: string
        reply_id:
          type: string
          description: 回复的消息ID
        room_id:
          type: string
          description: 发送消息的房间ID
        addition:
          type: string
          description: 需要用json.dumps转换成字符串再填充
        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
      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
      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: []

```
