skip to Main Content

Telegram – following error occured while running the code

Traceback (most recent call last): File "/home/himself/Desktop/image_resizer_bot.py", line 2, in <module> from telegram import Update, KeyboardButton, ReplyKeyboardMarkup ImportError: cannot import name 'Update' from 'telegram' (/home/himself/Desktop/myenv/lib/python3.11/site-packages/telegram/__init__.py) How to fix this? I was expecting error free code.

VIEW QUESTION
Back To Top
Search