sendCustomMessage method
发送自定义消息
Implementation
Future<V2TimValueCallback<V2TimMessage>> sendCustomMessage({
required String data,
required String receiver,
String? groupID,
int? priority = 0,
String? desc = "",
String? extension = "",
bool onlineUserOnly = false,
}) async {
return V2TimValueCallback<V2TimMessage>.fromJson(
_formatJson(
await _channel.invokeMethod(
"sendCustomMessage",
_buildParam(
{
"data": data,
"receiver": receiver,
"groupID": groupID,
"priority": priority,
"desc": desc,
"extension": extension,
"onlineUserOnly": onlineUserOnly,
},
),
),
),
);
}