Function encryptedStream

  • Parameters

    • media: WAMediaUpload
    • mediaType: "ppic" | "product" | "image" | "video" | "sticker" | "audio" | "gif" | "ptt" | "thumbnail-document" | "thumbnail-image" | "thumbnail-link" | "thumbnail-video" | "md-app-state" | "md-msg-hist" | "document" | "product-catalog-image" | "payment-bg-image" | "ptv"
    • __namedParameters: EncryptedStreamOptions = {}

    Returns Promise<{
        bodyPath: undefined | string;
        didSaveToTmpPath: boolean;
        encWriteStream: Readable;
        fileEncSha256: Buffer;
        fileLength: number;
        fileSha256: Buffer;
        mac: Buffer;
        mediaKey: Buffer;
    }>

Generated using TypeDoc