Answer the question
In order to leave comments, you need to log in
Why is it giving a syntax error?
Gives a syntax error because of the line
Everything was fine before bot.polling(none_stop=True, interval=0)
Answer the question
In order to leave comments, you need to log in
Show the entire Traceback - it is extremely difficult to understand without it.
Quite often there are situations when the interpreter shows one place, and the error is completely different.
Review your code, commas, brackets :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question