sendAudioMessage static method

  1. @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.audio())')
Future<String> sendAudioMessage(
  1. String jid,
  2. String filePath,
  3. bool isRecorded,
  4. String duration,
  5. String replyMessageId, {
  6. String? audioFileUrl,
  7. String? topicId,
})

Sends an audio message to a specified JID.

This method allows you to send an audio message to a user or group identified by the jid. The filePath parameter specifies the local path of the audio file to be sent. The isRecorded parameter indicates whether the audio message is a recorded message (true) or not (false). The duration parameter specifies the duration of the audio message in seconds. The replyMessageId parameter is used if the message is a reply to a previous message (optional). Additional parameters such as audioFileUrl and topicId can be used for further customization (optional).

Implementation

@Deprecated(
    'Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.audio())')
static Future<String> sendAudioMessage(String jid, String filePath,
    bool isRecorded, String duration, String replyMessageId,
    {String? audioFileUrl, String? topicId}) {
  return FlyChatFlutterPlatform.instance.sendAudioMessage(
      jid, filePath, isRecorded, duration, replyMessageId,
      audioFileUrl: audioFileUrl, topicId: topicId);
}