sendDocumentMessage method
Implementation
@override
Future<dynamic> sendDocumentMessage(String jid, String documentPath, String replyMessageId, {String? fileUrl, String? topicId}) async {
dynamic documentResponse;
try {
documentResponse = await mirrorFlyMethodChannel.invokeMethod(
'sendDocumentMessage', {"file": documentPath, "jid": jid, "replyMessageId": replyMessageId, "file_url": fileUrl, "topicId": topicId});
LogMessage.d("documentResponse ", " $documentResponse");
return documentResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}