addFileAttachment method

void addFileAttachment(
  1. File file,
  2. {String? name,
  3. bool spoiler = false}
)

Add attachment from specified file

Implementation

void addFileAttachment(File file, {String? name, bool spoiler = false}) {
  addAttachment(AttachmentBuilder.file(file, name: name, spoiler: spoiler));
}