1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
pyTelegramBotAPI/telebot
Artem Frantsiian 81100f249c
Fix an error with the is_pil_image function
When I've tried to send_photo as shown in detailed_example, I got an error: "AttributeError: module 'PIL' has no attribute 'Image'". 
This error was described well here: https://stackoverflow.com/a/11911536/9092263. So in accordance to prescriptions, I've made changes and It works fine for me.

Steps to reproduce:
1. initiate bot via TeleBot constructor
2. call function bot.send_photo(call.message.chat.id, open("some_image.jpg", "rb"))

P.S.
Error Environment: 
- python==3.8.5
- pyTelegramBotAPI==3.7.3
- PIL==7.2.0
2020-08-29 21:57:41 +03:00
..
__init__.py Merge pull request #960 from CrafterKolyan/patch-1 2020-08-25 21:58:33 +03:00
apihelper.py Bot API support checked/updated up to 4.2 2020-08-25 18:18:51 +03:00
handler_backends.py Empty list optimization, Py2 arteacts removed, 2020-08-24 16:02:35 +03:00
types.py UPG: Added the field file_unique_id 2020-08-29 04:29:02 +08:00
util.py Fix an error with the is_pil_image function 2020-08-29 21:57:41 +03:00
version.py Empty list optimization, Py2 arteacts removed, 2020-08-24 16:02:35 +03:00