Constructors
Properties
updateLikeAndViewCountsVisibility
Methods
blocked
- blocked(): Promise<string[]>
Returns Promise<string[]>
comment
- comment(__namedParameters: {
mediaId: string;
module?: string;
replyToCommentId?: string;
text: string;
}): Promise<MediaRepositoryCommentResponseComment> Parameters
- __namedParameters: {
mediaId: string;
module?: string;
replyToCommentId?: string;
text: string;
}mediaId: string
Optional
module?: string
Optional
replyToCommentId?: string
text: string
commentsBulkDelete
- commentsBulkDelete(mediaId: string, commentIds: string[]): Promise<StatusResponse>
Parameters
- mediaId: string
- commentIds: string[]
commentsDisable
- commentsDisable(mediaId: string | number): Promise<unknown>
Returns Promise<unknown>
commentsEnable
- commentsEnable(mediaId: string | number): Promise<unknown>
Returns Promise<unknown>
delete
- delete(__namedParameters: {
mediaId: string;
mediaType?: "PHOTO" | "VIDEO" | "CAROUSEL";
}): Promise<unknown> Parameters
- __namedParameters: {
mediaId: string;
mediaType?: "PHOTO" | "VIDEO" | "CAROUSEL";
}mediaId: string
Optional
mediaType?: "PHOTO" | "VIDEO" | "CAROUSEL"
Returns Promise<unknown>
editMedia
- editMedia(__namedParameters: {
captionText: string;
mediaId: string;
}): Promise<MediaEditResponseRootObject> Parameters
- __namedParameters: {
captionText: string;
mediaId: string;
}captionText: string
mediaId: string
save
- save(userOptions: string | MediaSaveOptions): Promise<unknown>
Returns Promise<unknown>
seen
- seen(reels: {
[item: string]: [string];
}, module?: AndroidNavModule): Promise<StatusResponse> Parameters
- reels: {
[item: string]: [string];
} - module: AndroidNavModule = 'feed_timeline'
storyPollVote
- storyPollVote(mediaId: string, pollId: string | number, vote: "0" | "1"): Promise<MediaUpdatedMediaResponseRootObject>
Parameters
- mediaId: string
- pollId: string | number
- vote: "0" | "1"
storyQuizAnswer
- storyQuizAnswer(mediaId: string, quizId: string | number, answer: string): Promise<MediaUpdatedMediaResponseRootObject>
Parameters
- mediaId: string
- quizId: string | number
- answer: string
storySliderVote
- storySliderVote(mediaId: string, sliderId: string | number, vote: number): Promise<MediaUpdatedMediaResponseRootObject>
Parameters
- mediaId: string
- sliderId: string | number
- vote: number
unsave
- unsave(mediaId: string): Promise<unknown>
Returns Promise<unknown>
uploadFinish
- uploadFinish(options: {
source_type: string;
upload_id: string;
video?: {
audio_muted?: boolean;
clips?: {
length: number;
source_type: string;
}[];
length: number;
poster_frame_index?: number;
};
}): 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
Optional
video?: {
audio_muted?: boolean;
clips?: {
length: number;
source_type: string;
}[];
length: number;
poster_frame_index?: number;
}
Optional
audio_muted?: boolean
Optional
clips?: {
length: number;
source_type: string;
}[]
length: number
Optional
poster_frame_index?: number
Returns Promise<unknown>
Normally, this is requested before each comment is sent to ensure it isn't spam or hateful