small;
This commit is contained in:
parent
a8014f286a
commit
c39024ead1
@ -22,6 +22,10 @@ http_headers: dict[str, str] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class CatboxAsync:
|
class CatboxAsync:
|
||||||
|
def __init__(self) -> None:
|
||||||
|
self.catbox_api_url = catbox_api_url
|
||||||
|
self.headers = http_headers
|
||||||
|
|
||||||
def generateRandomFileName(self, fileExt: Optional[str] = None) -> str:
|
def generateRandomFileName(self, fileExt: Optional[str] = None) -> str:
|
||||||
"""
|
"""
|
||||||
Generate random file name
|
Generate random file name
|
||||||
@ -34,10 +38,6 @@ class CatboxAsync:
|
|||||||
fileExt = 'png'
|
fileExt = 'png'
|
||||||
return f"{random.getrandbits(32)}.{fileExt}"
|
return f"{random.getrandbits(32)}.{fileExt}"
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
self.catbox_api_url = catbox_api_url
|
|
||||||
self.headers = http_headers
|
|
||||||
|
|
||||||
async def upload(self, file: str) -> Optional[str]:
|
async def upload(self, file: str) -> Optional[str]:
|
||||||
"""
|
"""
|
||||||
Upload file to catbox
|
Upload file to catbox
|
||||||
|
Loading…
x
Reference in New Issue
Block a user