发送聊天室消息
开发中
POST
/im/v2/chatrooms/{room_id}/messages
请求参数
Path 参数
room_id
string
聊天室 ID。
示例值:
1605537145
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
sender_id
string
发送者帐号
receiver_ids
array[string]
接收方帐号列表
resend_flag
enum<integer>
重发标记
枚举值:
01
extension
string
开发者扩展字段参数
message
object
消息体
message_client_id
string
消息ID
message_type
enum<integer>
消息类型
枚举值:
01234610100
sub_type
integer
自定义消息子类型
text
string
文本消息
attachment
object
多媒体消息内容
location_x
number
空间坐标 x
location_y
number
空间坐标 y
location_z
number
空间坐标 z
message_config
object
消息配置
ignore_chat_banned
boolean
是否忽略聊天室的临时禁言
history_enabled
boolean
是否存云端历史
high_priority
boolean
是否高优消息
need_high_priority_msg_resend
boolean