addBytesAttachment method

void addBytesAttachment(
  1. List<int> bytes,
  2. String name,
  3. {bool spoiler = false}
)

Add attachment from specified bytes

Implementation

void addBytesAttachment(List<int> bytes, String name, {bool spoiler = false}) {
  addAttachment(AttachmentBuilder.bytes(bytes, name, spoiler: spoiler));
}