Neutrome SDK reference
    Preparing search index...

    Function extractAttachments

    • Decodes every attachment carried by a program.

      Parameters

      • program: Program

        Program to read.

      Returns ProgramAttachment[]

      One entry per attachment, each tagged with its message and position.

      for (const attachment of extractAttachments(request)) {
      console.log(attachment.kind, attachment.mimeType);
      }