Skip to content

Commit

Permalink
Updated Methods Datatype and Added Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaa-codes committed Jul 14, 2022
1 parent 64db8e2 commit da3faaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions instagrapi/mixins/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def comment_unlike(self, comment_pk: int) -> bool:
"""
return self.comment_like(comment_pk, revert=True)

def comment_pin(self, media_id: str, comment_pk: str, revert: bool = False):
def comment_pin(self, media_id: str, comment_pk: int, revert: bool = False):
"""
Pin a comment on a media
Expand All @@ -156,7 +156,8 @@ def comment_pin(self, media_id: str, comment_pk: str, revert: bool = False):
Unique identifier of a Media
comment_pk: int
Unique identifier of a Comment
revert: bool, optional
Unpin when True
Returns
-------
bool
Expand All @@ -169,7 +170,7 @@ def comment_pin(self, media_id: str, comment_pk: str, revert: bool = False):
result = self.private_request(f"media/{media_id}/{name}_comment/{comment_pk}", data)
return result["status"] == "ok"

def comment_unpin(self, media_id: str, comment_pk: str):
def comment_unpin(self, media_id: str, comment_pk: int):
"""
Unpin a comment on a media
Expand Down

0 comments on commit da3faaf

Please sign in to comment.