sendMessage static method

Future<Message?> sendMessage(
  1. int conversationType,
  2. String targetId,
  3. MessageContent content, {
  4. bool disableNotification = false,
})

发送消息

conversationType 会话类型,参见枚举 RCConversationType

targetId 会话 id

content 消息内容 参见 MessageContent

Implementation

static Future<Message?> sendMessage(int conversationType, String targetId, MessageContent content, {bool disableNotification = false}) async {
  return sendMessageCarriesPush(conversationType, targetId, content, "", "", disableNotification: disableNotification);
}