Update Uploading_images.py
Browse files- Uploading_images.py +2 -1
Uploading_images.py
CHANGED
@@ -13,9 +13,10 @@ def get_image_url(message_id):
|
|
13 |
with open(file_path, "wb") as f:
|
14 |
for chunk in message_content.iter_content():
|
15 |
f.write(chunk)
|
|
|
16 |
return file_path
|
17 |
except Exception as e:
|
18 |
-
print(f"
|
19 |
return None
|
20 |
|
21 |
# 使用字典模擬用戶訊息歷史存儲
|
|
|
13 |
with open(file_path, "wb") as f:
|
14 |
for chunk in message_content.iter_content():
|
15 |
f.write(chunk)
|
16 |
+
print(f"✅ 圖片成功儲存到:{file_path}")
|
17 |
return file_path
|
18 |
except Exception as e:
|
19 |
+
print(f"❌ 圖片取得失敗:{e}")
|
20 |
return None
|
21 |
|
22 |
# 使用字典模擬用戶訊息歷史存儲
|