sendDocumentMessage static method
- @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.document())')
Sends a document message to a specified JID.
This method allows you to send a document message to a user or group identified by the jid
.
The documentPath
parameter specifies the local path of the document to be sent.
The replyMessageId
parameter is used if the message is a reply to a previous message (optional).
Additional parameters such as documentName
and mimeType
can be used for further customization (optional).
Implementation
@Deprecated(
'Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.document())')
static Future<String> sendDocumentMessage(
String jid, String documentPath, String replyMessageId,
{String? fileUrl, String? topicId}) {
return FlyChatFlutterPlatform.instance.sendDocumentMessage(
jid, documentPath, replyMessageId,
fileUrl: fileUrl, topicId: topicId);
}