Skip to content

Commit fb4e8ef

Browse files
authored
deleteComment fixed , No need to captionText
1 parent 532d481 commit fb4e8ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

InstagramAPI.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,11 @@ def comment(self, mediaId, commentText):
216216
})
217217
return self.SendRequest('media/'+ str(mediaId) +'/comment/', self.generateSignature(data))
218218

219-
def deleteComment(self, mediaId, captionText, commentId):
219+
def deleteComment(self, mediaId, commentId):
220220
data = json.dumps({
221221
'_uuid' : self.uuid,
222222
'_uid' : self.username_id,
223-
'_csrftoken' : self.token,
224-
'caption_text' : captionText
223+
'_csrftoken' : self.token
225224
})
226225
return self.SendRequest('media/'+ str(mediaId) +'/comment/'+ str(commentId) +'/delete/', self.generateSignature(data))
227226

0 commit comments

Comments
 (0)