sendDocumentMessage static method

  1. @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.document())')
Future<String> sendDocumentMessage(
  1. String jid,
  2. String documentPath,
  3. String replyMessageId, {
  4. String? fileUrl,
  5. String? topicId,
})

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);
}