Appearance
function commentMedia( client, mediaId, text, options? ): Promise<{ [key: string]: unknown; content_type?: string; created_at?: number; pk?: string; status?: string; text?: string; user?: { [key: string]: unknown; biography?: string; external_url?: string | null; follower_count?: number | null; following_count?: number | null; full_name?: string; is_private?: boolean; is_verified?: boolean; media_count?: number | null; pk?: string; profile_pic_url?: string | null; username?: string; }; }>;
Posts a comment (or a reply, with repliedToCommentId) and returns the created comment.
repliedToCommentId
client
PrivateClient
mediaId
string
text
options?
CommentOptions
Promise<{ [key: string]: unknown; content_type?: string; created_at?: number; pk?: string; status?: string; text?: string; user?: { [key: string]: unknown; biography?: string; external_url?: string | null; follower_count?: number | null; following_count?: number | null; full_name?: string; is_private?: boolean; is_verified?: boolean; media_count?: number | null; pk?: string; profile_pic_url?: string | null; username?: string; }; }>
Promise
key
unknown
content_type?
created_at?
number
pk?
status?
text?
user?
biography?
external_url?
null
follower_count?
following_count?
full_name?
is_private?
boolean
is_verified?
media_count?
profile_pic_url?
username?
Function: commentMedia()
Posts a comment (or a reply, with
repliedToCommentId) and returns the created comment.Parameters
clientPrivateClientmediaIdstringtextstringoptions?CommentOptionsReturns
Promise<{ [key:string]:unknown;content_type?:string;created_at?:number;pk?:string;status?:string;text?:string;user?: { [key:string]:unknown;biography?:string;external_url?:string|null;follower_count?:number|null;following_count?:number|null;full_name?:string;is_private?:boolean;is_verified?:boolean;media_count?:number|null;pk?:string;profile_pic_url?:string|null;username?:string; }; }>