This commit is contained in:
Auric Vente 2024-04-20 13:28:39 -06:00
parent 2b88667061
commit 81ac773168
1 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,9 @@ async def on_message(ws, message):
if (not name) or (not ext):
return
if ext not in [".jpg", ".jpeg", ".png", ".gif", ".webm", ".mp4"]:
return
last_file = f"https://deek.chat/storage/files/{name}"
last_file_ext = ext
elif data["type"] in ["message", "messageEnd"]: