sendAudioMessage static method
- @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.audio())')
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);
}