|
@@ -69,7 +69,7 @@ async def tg(_, message):
|
|
|
|
|
|
|
|
async def download(url):
|
|
async def download(url):
|
|
|
ext = url.split(".")[-1]
|
|
ext = url.split(".")[-1]
|
|
|
- filename = randint(1000, 9999) + "." + ext
|
|
|
|
|
|
|
+ filename = str(randint(1000, 9999)) + "." + ext
|
|
|
async with aiohttp.ClientSession() as session:
|
|
async with aiohttp.ClientSession() as session:
|
|
|
async with session.get(url) as resp:
|
|
async with session.get(url) as resp:
|
|
|
if resp.status == 200:
|
|
if resp.status == 200:
|