Telegram-Airdrop-Bot icon indicating copy to clipboard operation
Telegram-Airdrop-Bot copied to clipboard

bot.py not work

Open twomax1177 opened this issue 3 years ago • 1 comments

root@mazin:~/Telegram-Airdrop-Bot# python3 bot.py Traceback (most recent call last): File "bot.py", line 2, in from telegram import ReplyKeyboardMarkup, ReplyKeyboardRemove, Update, InlineKeyboardMarkup ImportError: cannot import name 'ReplyKeyboardMarkup' from 'telegram' (/usr/local/lib/python3.8/dist-packages/telegram/init.py)

twomax1177 avatar Feb 01 '22 19:02 twomax1177

@twomax1177 check if the modules has been installed correctly.

If you still face this issue, reinstall the telegram library and check if the ReplyKeyboardMarkup class is present by importing it in the terminal

Steps would be-

  1. Open terminal -> python
  2. import telegram
  3. telegram.ReplyKeyboardMarkup It should should return the class object, meaning the installation is done properly

Skandesh avatar Apr 26 '22 09:04 Skandesh