TheHamkerCat 5 năm trước cách đây
mục cha
commit
6404a3cd8f
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  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: