welcomebot
welcomebot copied to clipboard
import error
I'm trying to use your bot and am getting the following error: Traceback (most recent call last):
File "bot.py", line 8, in
I did a pip install of python-telegram-bot. Any thoughts?
I am having the same problem..
- Created
virtualenv
for python3.6 withvirtualenv -p `which python3.6`
- Activated
virtualenv
with. ./bin/activate
- Ran
pip install telegram
-
./bin/python bot.py
gives
File "bot.py", line 8, in <module>
from telegram import Emoji, ParseMode, TelegramError, Update
ImportError: cannot import name 'Emoji'```
Solution found!
It seems the Emoji support was deprecated in python-telegram-bot
V5.1, so in order to make it work you have to install V5.0 using
pip install python-telegram-bot==5.0
Well, how about that. Good detective work. I'll try that later this week and report back. Depreciated on purpose? But why...