4.5 发送消息.md 893 Bytes

请求参数说明:

参数名 参数类型 必选 参数说明
appId String true 应用ID
fromSid String true 用户ID
toChatroomId String true 聊天室ID,多个参数可以实现向多个聊天室发送消息
msgType String true 消息类型(仅支持文本和图片消息)
(文本消息: RC:TxtMsg; 图片消息:RC:ImgMsg;
图文消息:RC:ImgTextMsg;位置消息:RC:LBSMsg;
提示条(小灰条)通知消息:RC:InfoNtf;
语音消息:RC:VcMsg;资料通知消息:RC:ProfileNtf
msg String true 消息内容
imageUrl String false 图片URL,消息类型为图片消息(RC:ImgMsg)时,此参数必须传

返回格式说明:

{
    "errorCode": "0",
    "errorMessage": "发送聊天室消息成功",
    "data": {}
}