replyAudio method

Future<Message> replyAudio(
  1. dynamic audio, {
  2. bool withQuote = false,
  3. String? caption,
  4. String? parseMode,
  5. List<MessageEntity>? captionEntities,
  6. int? duration,
  7. String? performer,
  8. String? title,
  9. dynamic thumbnail,
  10. bool? disableNotification,
  11. bool? allowSendingWithoutReply,
  12. ReplyMarkup? replyMarkup,
})

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);