feat: add report

This commit is contained in:
firedotguy
2026-01-29 21:11:00 +03:00
parent c2866a9d28
commit 6e7826f049
2 changed files with 20 additions and 1 deletions

4
itd/reports.py Normal file
View File

@@ -0,0 +1,4 @@
from itd.request import fetch
def report(token: str, id: str, type: str = 'post', reason: str = 'other', description: str = ''):
return fetch(token, 'post', 'reports', {'targetId': id, 'targetType': type, 'reason': reason, 'description': description})