AttachmentBuilder.bytes constructor

AttachmentBuilder.bytes(
  1. List<int> bytes,
  2. String name, {
  3. bool? spoiler,
})

Creates attachment from provided bytes

Implementation

factory AttachmentBuilder.bytes(List<int> bytes, String name, {bool? spoiler}) =>
  AttachmentBuilder._new(bytes, name, spoiler);