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

    Variable MediaCommentsSheetOptionsSchemaConst

    MediaCommentsSheetOptionsSchema: Struct<
        {
            commentSessionId: optionalKey<String>;
            rankingSessionId: optionalKey<String>;
        },
    > = ...

    How the comments sheet is opened over a feed media: the composer's session id and the feed comment's ranking session when the caller declares them (a scene declares the values it starts from). The composer's session id is generated when the sheet opens if the caller declares none; the ranking session is not — it is the opened feed surface's wire fact, passed by the edge that records one (the 451 contextual feed mints it) and absent on the surface that records none (the 450 short-url post sends the empty value). They are the sheet's inputs, not per-comment values. The reels surface's options are ReelsCommentsSheetOptionsSchema: a reel's ranking session is the viewer's chaining fact, so that edge has no second copy to declare.