Constructors

Properties

addMentionedUser: ((input: MediaAddMentionedUserInput) => Promise<MediaAddMentionedUserResponse>) = ...
edit: ((input: MediaEditInput) => Promise<MediaEditResponse.Root>) = ...
impression: ((input: MediaImpressionInput) => MediaImpression) = ...
info: ((input: MediaInfoCommandInput) => Promise<MediaInfoResponse>) = ...
updateLikeAndViewCountsVisibility: ((input: MediaUpdateLikeAndViewCountsVisibilityInput) => Promise<StatusResponse>) = ...

Methods

  • Returns Promise<string[]>

  • Parameters

    • __namedParameters: {
          mediaId: string;
          module?: string;
          replyToCommentId?: string;
          text: string;
      }
      • mediaId: string
      • Optionalmodule?: string
      • OptionalreplyToCommentId?: string
      • text: string

    Returns Promise<MediaRepositoryCommentResponseComment>

  • Parameters

    • mediaId: string
    • commentIds: string[]

    Returns Promise<StatusResponse>

  • Parameters

    • mediaId: string | number

    Returns Promise<unknown>

  • Parameters

    • mediaId: string | number

    Returns Promise<unknown>

  • Deletes a media. Though it is counter-intuitive, this method is also responsible for deleting story from tray

    Parameters

    • __namedParameters: {
          mediaId: string;
          mediaType?: "PHOTO" | "VIDEO" | "CAROUSEL";
      }
      • mediaId: string
      • OptionalmediaType?: "PHOTO" | "VIDEO" | "CAROUSEL"

    Returns Promise<unknown>

  • Parameters

    • __namedParameters: {
          captionText: string;
          mediaId: string;
      }
      • captionText: string
      • mediaId: string

    Returns Promise<MediaEditResponseRootObject>

    use igpapi.media.edit({...}) instead

  • Last update: 5. Apr. 2020

    Parameters

    Returns Promise<unknown>

  • Parameters

    • reels: {
          [item: string]: [string];
      }
      • [item: string]: [string]
    • module: AndroidNavModule = 'feed_timeline'

    Returns Promise<StatusResponse>

  • Parameters

    • mediaId: string

    Returns Promise<unknown>

  • Parameters

    • options: {
          source_type: string;
          upload_id: string;
          video?: {
              audio_muted?: boolean;
              clips?: {
                  length: number;
                  source_type: string;
              }[];
              length: number;
              poster_frame_index?: number;
          };
      }
      • source_type: string
      • upload_id: string
      • Optionalvideo?: {
            audio_muted?: boolean;
            clips?: {
                length: number;
                source_type: string;
            }[];
            length: number;
            poster_frame_index?: number;
        }
        • Optionalaudio_muted?: boolean
        • Optionalclips?: {
              length: number;
              source_type: string;
          }[]
        • length: number
        • Optionalposter_frame_index?: number

    Returns Promise<unknown>