createChatroomRobotMessage static method
创建机器人消息
Implementation
static Future<NIMResult<NIMChatroomMessage>> createChatroomRobotMessage({
required String roomId,
required String robotAccount,
required NIMRobotMessageType type,
String? text,
String? content,
String? target,
String? params,
}) async {
return NimCore.instance.chatroomService._createMessage({
'roomId': roomId,
'robotAccount': robotAccount,
'robotMessageType': _robotMessageTypeMap[type],
'text': text,
'content': content,
'target': target,
'params': params,
'messageType': 'robot',
});
}