feat: add get replies and get_user_posts

This commit is contained in:
firedotguy
2026-02-07 23:20:00 +03:00
parent 6236c5981b
commit 5ebcdb1ad5
7 changed files with 69 additions and 6 deletions

View File

@@ -19,3 +19,6 @@ def unlike_comment(token: str, comment_id: UUID):
def delete_comment(token: str, comment_id: UUID):
return fetch(token, 'delete', f'comments/{comment_id}')
def get_replies(token: str, comment_id: UUID, page: int = 1, limit: int = 50, sort: str = 'oldest'):
return fetch(token, 'get', f'comments/{comment_id}/replies', {'page': page, 'limit': limit, 'sort': sort})