sendImageMessage static method

  1. @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.image())')
Future<String> sendImageMessage(
  1. String jid,
  2. String filePath,
  3. String? caption,
  4. String? replyMessageID, {
  5. String? imageFileUrl,
  6. String? topicId,
})

Sends an image message to a specified JID.

This method sends an image message to the user or group identified by the jid. The imagePath parameter specifies the local path of the image to be sent. The replyMessageId parameter is optional and specifies the ID of the message being replied to, if any.

Parameters:

  • jid: The JID of the recipient.
  • imagePath: The local path of the image.
  • replyMessageId: The ID of the message being replied to (optional).

Returns a Future<String> containing the ID of the sent message.

Throws an ArgumentError if jid or imagePath is null.

Implementation

@Deprecated(
    'Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.image())')
static Future<String> sendImageMessage(
    String jid, String filePath, String? caption, String? replyMessageID,
    {String? imageFileUrl, String? topicId}) {
  return FlyChatFlutterPlatform.instance.sendImageMessage(
      jid, filePath, caption, replyMessageID,
      imageFileUrl: imageFileUrl, topicId: topicId);
}