I have to declare the updater in the following way
updater = Updater(TOKEN,use_context=False)
When I was not passing the second keyworded argument it gave me an error that Callback content has no attribute message but when I used it, it gave a warning TelegramDeprecationWarning: Old Handler API is deprecated. So is it fine to use it in this way?
Error while creating a polling program
hey @Mohit2000 ,
If it is working then keep going.
Else, if you get stuck , then just lower your python-telegram-bot version to 12.8.
Everything will work fine.
how to downgrade the version?
just run the code
pip install --ugrade python-telegram-bot==12.8