Open tripoflgb opened 3 years ago
You sent a non-compressed photo, which greed doesn't support...
It's weird that python-telegram-bot considered it a photo, though...
I'll investigate when I have time.
If i send a non-compressed / compressed photo, please fix in next update.
I think it's due to the Bot API 5.3 update.
Now photos have a different JSON structure, so trying to access the PhotoSize
array fails.
I think that something should be changed here:
Please help fix error, add photo to product from Windows Telegram client or phone (selected file)
Worker 1895432016 | worker | Exception in <Worker 1895432016>: list index out of range Traceback (most recent call last): File "/root/garminbot/worker.py", line 254, in run self.admin_menu() File "/root/garminbot/worker.py", line 1757, in __admin_menu self.products_menu() File "/root/garminbot/worker.py", line 1966, in __products_menu self.edit_product_menu() File "/root/garminbot/worker.py", line 2088, in edit_product_menu largest_photo = photo_list[0] IndexError: list index out of range