DEV Community

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

Collapse
 
prodplug profile image
prodplug

File "\main.py", line 9, in
updater = Updater(token=TOKEN, use_context=True)
File "\updater.py", line 237, in init
raise ValueError('token or bot must be passed')
ValueError: token or bot must be passed

any way to fix this (removed directory for privacy purpose)

this is when i enter python main.py

Collapse
 
curiouspaul1 profile image
Curious Paul

You have to replace "TOKEN" with the actual token that you got from the telegram Bot-father and use that instead, i just put "TOKEN" as a placeholder