DEV Community

Discussion on: Building An E-commerce Telegram Bot Using Python and Fauna.

Collapse
 
pradiepp profile image
pradiepp

Cant seems to solve this error while running the Main.py


Traceback (most recent call last):
File "C:\Users\ACER\Desktop\Bot\Bot\main.py", line 35, in
main()
File "C:\Users\ACER\Desktop\Bot\Bot\main.py", line 16, in main
entry_points=[CommandHandler('start', handlers.start)],
NameError: name 'handlers' is not defined. Did you mean: 'handler'?

Collapse
 
curiouspaul1 profile image
Curious Paul

did you rename the "handlers.py" file

Collapse
 
pradiepp profile image
pradiepp

No, its 'handlers.py' only.