批量发送聊天室消息
开发中
POST
/im/v2/chatrooms/messages
请求参数
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
room_id
number
聊天室 ID
sender_id
string
发送者账号
receiver_ids
array[string]
消息接收账号 ID 列表
resend_flag
enum<integer>
重发消息标记
枚举值:
01
extension
string
开发者扩展参数
messages
array [object {8}]
消息列表
message_client_id
string
消息ID
message_type
enum<integer>
消息类型
枚举值:
01234610100
sub_type
integer
自定义消息子类型
text
string
文本消息
attachment
object
多媒体消息内容
location_x
number
空间坐标 x
location_y
number