sendImageMessage method
Implementation
@override
Future<dynamic> sendImageMessage(String jid, String filePath, String? caption, String? replyMessageID,
{String? imageFileUrl, String? topicId}) async {
dynamic messageResp;
try {
messageResp = await mirrorFlyMethodChannel.invokeMethod('send_image_message', {
"jid": jid,
"filePath": filePath,
"caption": caption?.trim(),
"replyMessageId": replyMessageID,
"imageFileUrl": imageFileUrl,
"topicId": topicId
});
LogMessage.d("Image Message Result ", " $messageResp");
return messageResp;
} on PlatformException catch (e) {
LogMessage.d("Image Message Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Image Message Exception ", " $error");
rethrow;
}
}