描述

channel/sent,发送聊天消息

请求参数

参数 类型 是否必选 含义
type int 消息类型
body string 消息体
channel_id string 频道ID/房间ID

type

参数 类型 含义
CustomBroadcast string 自定义消息

错误码

参数 类型 含义
10010 int 消息类型不能为空
10016 int 频道ID不能为空
20002 int 房间查询为空
20004 int 频道查询为空
30002 int 不是当前频道拥有者
40002 int 消息类型不正确
40012 int 消息体过长,最长为500
50002 int 消息发送失败

响应示例

{
    "code": 200,
    "msg": "",
    "data": []
}