TheHamkerCat 5 年之前
父节点
当前提交
6404a3cd8f
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      wbb/modules/bay.py

+ 1 - 1
wbb/modules/bay.py

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