sendVoiceMessage method
Implementation
Future<void> sendVoiceMessage(
String path, int duration, String? displayName) async {
if (await createThreadIfNotExits() == false) return;
final message = Message.createVoiceSendMessage(
targetId: thread!.threadId,
filePath: path,
duration: duration,
displayName: displayName,
);
sendMessage(message);
}