Explorar el Código

Version 4.1.1

Johnounet hace 2 meses
padre
commit
93d63b8255
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      chatbot.py

+ 1 - 1
chatbot.py

@@ -277,7 +277,7 @@ async def on_message(message):
         too_large_images = []
         for attachment in message.attachments:
             if attachment.content_type and attachment.content_type.startswith('image/'):
-                max_size = 2 * 1024 * 1024  # 2 Mo en octets
+                max_size = 5 * 1024 * 1024  # 2 Mo en octets
                 if attachment.size > max_size:
                     too_large_images.append(attachment.filename)
         # Si des images trop grandes sont trouvées, envoyer un message d'erreur et arrêter