EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
91 stars 125 forks source link

[BUG] photos fails to upload #236

Closed EDM115 closed 10 months ago

EDM115 commented 10 months ago

ICO files aren't photo stupid

2023-10-18 19:36:48,711 - INFO - unzipper - asyncio_0 - 
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 460958 bytes (451 KiB)

Extracting archive: /app/Downloaded/854158484/archive_from_854158484.zip
--
Path = /app/Downloaded/854158484/archive_from_854158484.zip
Type = zip
Physical Size = 460958

Everything is Ok

Folders: 3
Files: 10
Size:       520548
Compressed: 460958
2023-10-18 19:36:50,003 - INFO - unzipper - MainThread - ext_a|854158484|854158484|False
2023-10-18 19:36:50,004 - INFO - unzipper - MainThread - ext_a paths : ['/app/Downloaded/854158484/extracted/copilot_icons/ico/Copilot 2023.ico', '/app/Downloaded/854158484/extracted/copilot_icons/ico/Copilot blue.ico', '/app/Downloaded/854158484/extracted/copilot_icons/ico/Copilot green.ico', '/app/Downloaded/854158484/extracted/copilot_icons/ico/Copilot purple.ico', '/app/Downloaded/854158484/extracted/copilot_icons/ico/Copilot red.ico', '/app/Downloaded/854158484/extracted/copilot_icons/png/Microsoft_Copilot_2023.png', '/app/Downloaded/854158484/extracted/copilot_icons/png/Microsoft_Copilot_Blue.png', '/app/Downloaded/854158484/extracted/copilot_icons/png/Microsoft_Copilot_Green.png', '/app/Downloaded/854158484/extracted/copilot_icons/png/Microsoft_Copilot_Purple.png', '/app/Downloaded/854158484/extracted/copilot_icons/png/Microsoft_Copilot_Red.png']
2023-10-18 19:36:50,476 - ERROR - unzipper - MainThread - Telegram says: [400 PHOTO_EXT_INVALID] - The photo extension is invalid (caused by "messages.SendMedia")

regular photos like PNG also gets errors

2023-10-18 19:37:53,082 - ERROR - unzipper - MainThread - Telegram says: [400 PHOTO_SAVE_FILE_INVALID] - The photo you tried to send cannot be saved by Telegram (caused by "messages.SendMedia")

idk why (skill issue probably)

Screenshot_2023-10-18-21-44-43-266_org.thunderdog.challegram.jpg

EDM115 commented 10 months ago

closed in 09da4b87bba6e0a8481873d219b94c735a8cabf7