Answer the question
In order to leave comments, you need to log in
I welcome everyone. I can't start a telegram bot in cmd (I'm making a bot in Python). It gives an error, what should I do?
It gives the following error when running the script:
Traceback (most recent call last):
File "botik.py", line 10, in
bot = Bot(token=config.TOKEN)
File "C:\Users\Idario\AppData\Local\Programs \Python\Python38\lib\site-packages\aiogram\bot\base.py", line 68, in __init__
api.check_token(token)
File "C:\Users\Idario\AppData\Local\Programs\Python\Python38\ lib\site-packages\aiogram\bot\api.py", line 75, in check_token
raise exceptions.ValidationError('Token is invalid!')
aiogram.utils.exceptions.ValidationError: Token is invalid!
Answer the question
In order to leave comments, you need to log in
you have an error aiogram.utils.exceptions.ValidationError: Token is invalid! - incorrect token
check if you copied the token completely
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question