When I compile the code of Telegram Echo Bot, I get the following Warning-
bot.py:39: TelegramDeprecationWarning: Old Handler API is deprecated - see https://git.io/fxJuV for details updater=Updater(TOKEN)
what does this warning mean?\
When I compile the code of Telegram Echo Bot, I get the following Warning-
bot.py:39: TelegramDeprecationWarning: Old Handler API is deprecated - see https://git.io/fxJuV for details updater=Updater(TOKEN)
what does this warning mean?\
hey @LPLC0059,
There is a handler api being used under the telegram module , and might be you are using a version in which this api is going to be stopped after sometime and for this the creators have created another module or updated this current module into a new module.
Hence , it is saying that this api is currently deprecated means it is soon going to be stopped and therefore we recommend you to use the latest one. Hence it showing this warning.
I hope this would have helped you understand the issue.
Thank You and Happy Learning
And how can I prevent this warning?
use this.
import warnings
warnings.filterwarnings('ignore')
I hope this will work.