InputMediaAudio.fromFile constructor
InputMediaAudio.fromFile({})
Implementation
factory InputMediaAudio.fromFile(
{required io.File media,
String? thumbnail,
String? caption,
String? parseMode,
List<MessageEntity>? captionEntities,
int? duration,
String? performer,
String? title}) =>
InputMediaAudio(
media: 'attach://${media.path}',
thumbnail: thumbnail,
caption: caption,
parseMode: parseMode,
captionEntities: captionEntities,
duration: duration,
performer: performer,
title: title,
)..mediaFile = MultipartFile(
media.path, media.openRead(), media.lengthSync(),
filename: media.path.split('/').last);