replyAudio method
Reply to the recieved message with an audio
A wrapper around TeleDart.sendAudio. On success, returns the sent Message.
Apart from an audio
to reply with, it can
also take some options that control the message
appearance and behavior.
Check Telegram API documentation for more information about those options.
Implementation
Future<Message> replyAudio(
dynamic audio, {
bool withQuote = false,
String? caption,
String? parseMode,
List<MessageEntity>? captionEntities,
int? duration,
String? performer,
String? title,
dynamic thumbnail,
bool? disableNotification,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) =>
_teledart.sendAudio(chat.id, audio,
messageThreadId: messageThreadId,
caption: caption,
parseMode: parseMode,
captionEntities: captionEntities,
duration: duration,
performer: performer,
title: title,
thumbnail: thumbnail,
disableNotification: disableNotification,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);