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