This commit is contained in:
Timothy Jaeryang Baek
2026-01-06 03:24:08 +04:00
parent 1cfbb823ec
commit 927a765641
2 changed files with 20 additions and 6 deletions

View File

@@ -726,6 +726,8 @@ def get_images_from_messages(message_list):
for file in message.get("files", []):
if file.get("type") == "image":
message_images.append(file.get("url"))
elif file.get("content_type", "").startswith("image/"):
message_images.append(file.get("url"))
if message_images:
images.append(message_images)