sendTextMessage static method

  1. @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.text())')
Future<String> sendTextMessage(
  1. String message,
  2. String jid,
  3. String replyMessageId, {
  4. String? topicId,
})

Sends a text message to a specified JID.

This method sends a text message to the user or group identified by the jid. The message parameter contains the text of the message 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.
  • message: The text message to send.
  • 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 message is null.

Implementation

@Deprecated(
    'Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.text())')
static Future<String> sendTextMessage(
    String message, String jid, String replyMessageId,
    {String? topicId}) {
  return FlyChatFlutterPlatform.instance
      .sendTextMessage(message, jid, replyMessageId, topicId: topicId);
}