# Comments

### Comment on a Post

```typescript
const commentId = await instagram.commentOnMedia(
  'MEDIA_ID',
  'Great post! 👍'
);
```

### Reply to Comment

```typescript
const replyId = await instagram.replyToComment(
  'COMMENT_ID',
  'Thanks for your comment!'
);
```

### Get Comments on Post

```typescript
const comments = await instagram.getMediaComments('MEDIA_ID');
comments.forEach(comment => {
  console.log(`${comment.username}: ${comment.text}`);
});
```

### Get Replies to Comment

```typescript
const replies = await instagram.getCommentReplies('COMMENT_ID');
```

### Hide/Unhide Comment

```typescript
// Hide comment
await instagram.hideComment('COMMENT_ID');

// Unhide comment
await instagram.unhideComment('COMMENT_ID');
```

### Delete Comment

```typescript
await instagram.deleteComment('COMMENT_ID');
```