TheHamkerCat пре 5 година
родитељ
комит
3e2acf2117
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      wbb/modules/arq_storage.py
  2. 1 1
      wbb/utils/functions.py

+ 1 - 1
wbb/modules/arq_storage.py

@@ -80,7 +80,7 @@ async def arq_upload(_, message):
         async with UPLOAD_LOCK:
             r = message.reply_to_message
 
-            file_id = get_file_id_from_message(r, 100000000, [])
+            file_id = get_file_id_from_message(r, 100000000, None)
             if not file_id:
                 return await message.reply("Unsupported media.")
 

+ 1 - 1
wbb/utils/functions.py

@@ -251,7 +251,7 @@ def get_file_id_from_message(
 
         mime_type = message.document.mime_type
 
-        if mime_type not in mime_types:
+        if mime_types and mime_type not in mime_types:
             return
         file_id = message.document.file_id