Telegram Echo Bot

Hi!
I am getting an error when I run my echo bot code on command line. The error is as follows -
"
File “bot.py”, line 42, in main
dp.add_handler(MessageHandler(Filters.text,echo_text))
NameError: name ‘Filters’ is not defined
"
I checked my code and it seems right as given in the video lecture. Please help me debug it.
Thanks!

Hello @runjhunratawal, the Filters.txt that you have defined have you created this anywhere inside the same folder where you are running your code ??

The complete code is as follows:

I don’t think the Filters.txt matters (nothing was mentioned in the video lectures about it).
Thanks!

But I think the error is corresponding to the Filters.txt and this file or the module is there or not.
dp.add_handler(MessageHandler(Filters.text,echo_text))
NameError: name ‘Filters’ is not defined
As the error corresponds to this.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.