Attachment

Nguồn đính kèm, có thể là đường dẫn tới tệp hoặc dữ liệu Buffer của tệp

Model

export type AttachmentSource =
    | string
    | {
          data: Buffer;
          filename: `${string}.${string}`;
          metadata: {
              totalSize: number;
              width?: number;
              height?: number;
          };
      };

Last updated