K
K
kodbiprog2021-06-03 16:56:55
Python
kodbiprog, 2021-06-03 16:56:55

Error when deploying telegram bot to https://www.pythonanywhere.com/?

I wrote a telegram bot in python, when I run it on a PC, everything works without errors and problems, when I uploaded it to https://www.pythonanywhere.com/ and run it, it gives a syntax error, everything is on the screenshots.
60b8df9241a6a465073432.png
60b8dfa1676cd717130494.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-06-03
@kodbiprog

1. pythonruns python2.7, you need python3.6
2. Code and error are indicated by text
3. Bots on pythonanywhere are not run via the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question