feat: add files uploading; add banner updating
This commit is contained in:
5
itd/files.py
Normal file
5
itd/files.py
Normal 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)})
|
||||
Reference in New Issue
Block a user