Since I work with Linux for the first time, followed the instructions of the person with Habra https://habr.com/ru/post/347106/
Even when systemctl says that the bot is active in the telegram did not work, and after re-entering the command systemctl status bot gives the same error.
Thank you all for the help! Problem solved, I installed Ubuntu 18.04,as well as updated Python to version 3.6.9.
esther_Pfeffer answered on April 19th 20 at 12:07
journalctl -u bot will show what the bot said before he died. systemctl says that the bot is active, because, apparently, he dies immediately, but after the fall of the restart (auto-restart)
Marlene81 answered on April 19th 20 at 12:09
times knowledge to embed the data logger there, run the bot not using the unit, and directly.
in the console an error is displayed with which the bot is falling. /usr/bin/python3 /usr/local/bin/bot/bot.py
then either Google or paste the error here.
check the version of Python, do you have visual that your version is not yet supported.
as an example of the f string' starting with 3.6 python3 -V
lew33 answered on April 19th 20 at 12:11
The console also indicates that syntax error. White on black. Go and check that there is not and no configurations can only tyknut the fingers in this issue and send it back to understand