createChatroomRobotMessage method Null safety
Create a robot message.
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',
});
}