feat: add files uploading; add banner updating

This commit is contained in:
firedotguy
2026-01-29 23:39:35 +03:00
parent 10751f9ddb
commit f1d9a0b2f0
5 changed files with 20 additions and 7 deletions

5
itd/files.py Normal file
View File

@@ -0,0 +1,5 @@
from itd.request import fetch
def upload_file(token: str, name: str, data: bytes):
return fetch(token, 'post', 'files/upload', files={'file': (name, data)})