igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface PostingMediaFile

    The bytes of one picked file, held while the creation flow that picked it runs.

    interface PostingMediaFile {
        bytes: Buffer;
        flow: string;
        media:
            | {
                byteLength: number;
                height: number;
                id: string;
                kind: "photo";
                mimeType: "image/jpeg"
                | "image/png"
                | "image/webp";
                width: number;
            }
            | {
                byteLength: number;
                durationMs: number;
                height: number;
                id: string;
                kind: "video";
                mimeType: "video/mp4";
                width: number;
            };
    }
    Index

    Properties

    Properties

    bytes: Buffer
    flow: string

    The creation flow that picked it (its camera session): the pool's lifetime unit.

    media:
        | {
            byteLength: number;
            height: number;
            id: string;
            kind: "photo";
            mimeType: "image/jpeg"
            | "image/png"
            | "image/webp";
            width: number;
        }
        | {
            byteLength: number;
            durationMs: number;
            height: number;
            id: string;
            kind: "video";
            mimeType: "video/mp4";
            width: number;
        }

    Type Declaration

    • {
          byteLength: number;
          height: number;
          id: string;
          kind: "photo";
          mimeType: "image/jpeg" | "image/png" | "image/webp";
          width: number;
      }
      • ReadonlybyteLength: number
      • Readonlyheight: number
      • Readonlyid: string

        The id the process's media pool holds the bytes under (a client-minted UUID).

      • Readonlykind: "photo"
      • ReadonlymimeType: "image/jpeg" | "image/png" | "image/webp"
      • Readonlywidth: number
    • {
          byteLength: number;
          durationMs: number;
          height: number;
          id: string;
          kind: "video";
          mimeType: "video/mp4";
          width: number;
      }
      • ReadonlybyteLength: number
      • ReadonlydurationMs: number
      • Readonlyheight: number
      • Readonlyid: string

        The id the process's media pool holds the bytes under (a client-minted UUID).

      • Readonlykind: "video"
      • ReadonlymimeType: "video/mp4"
      • Readonlywidth: number