V
V
vanguar2020-05-25 15:33:39
Python
vanguar, 2020-05-25 15:33:39

Telegram bot error: ImportError: cannot import name 'CallbackContext' from 'telegram.ext' What's wrong?

Telegram bot - questionnaire.
An error is thrown:

File "C:/BotAnketa/anketa/main.py", line 7, in <module>
    from telegram.ext import CallbackContext
ImportError: cannot import name 'CallbackContext' from 'telegram.ext' (C:\BotAnketa\venv\lib\site-packages\telegram\ext\__init__.py)

Process finished with exit code 1


On the 7th line: I am using Python 3.8.2 from telegram.ext import CallbackContext

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question