sendImageMessage method
发送图片消息
Implementation
Future<V2TimValueCallback<V2TimMessage>> sendImageMessage(
{required String imagePath,
required String receiver,
String? groupID,
int priority = 0,
bool onlineUserOnly = false}) async {
return V2TimValueCallback<V2TimMessage>.fromJson(
_formatJson(
await _channel.invokeMethod(
"sendImageMessage",
_buildParam(
{
"imagePath": imagePath,
"receiver": receiver,
"groupID": groupID,
"priority": priority,
"onlineUserOnly": onlineUserOnly,
},
),
),
),
);
}