{"id":1126,"date":"2021-07-12T09:46:21","date_gmt":"2021-07-12T09:46:21","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=1126"},"modified":"2021-07-12T09:46:22","modified_gmt":"2021-07-12T09:46:22","slug":"futbolnyj-telegram-bot-na-python-4-4-zapusk-na-servere","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/en\/futbolnyj-telegram-bot-na-python-4-4-zapusk-na-servere\/","title":{"rendered":"\u0424\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442 \u043d\u0430 Python (4\/4): \u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0412 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e&nbsp;<a href=\"https:\/\/pythonru.com\/primery\/python-telegram-bot\" target=\"_blank\" rel=\"noopener\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0430 \u043d\u0430 python<\/a>, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f \u0438 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0430 VPS, \u0430 \u043d\u0435 Heroku.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, Heroku \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0434\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435. \u0415\u0433\u043e \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0442\u0430\u0440\u0438\u0444\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0448\u0435 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u0430\u0440\u0435\u043d\u0434\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0434\u0430\u044e\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043d\u0430 \u0433\u043e\u0434. \u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e \u0431\u044b 4 \u0433\u043e\u0434\u0430 \u043d\u0435 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-vps\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 VPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c VPS \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043d\u0430 \u0433\u043e\u0434. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u043b\u044e\u0431\u043e\u0439:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/aws.amazon.com\/ru\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS Amazon<\/a>, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 Amazon EC2.<\/li><li><a href=\"https:\/\/azure.microsoft.com\/ru-ru\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Microsoft<\/a>, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b Linux.<\/li><li><a href=\"https:\/\/cloud.google.com\/free\" target=\"_blank\" rel=\"noreferrer noopener\">Google Cloud<\/a>, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 Compute Engine.<\/li><li><a href=\"https:\/\/www.alibabacloud.com\/campaign\/free-trial\" target=\"_blank\" rel=\"noreferrer noopener\">Alibaba Cloud<\/a>, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 Elastic Compute Service.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0441\u0435 \u0441\u0440\u0430\u0437\u0443, \u044d\u0442\u043e \u0440\u0430\u0437\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c VPS, \u0443 \u044d\u0442\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u0432\u044b\u0441\u043e\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u043c \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430\u043c\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 Azure. \u0423 \u043d\u0438\u0445 \u043c\u043d\u043e\u0433\u043e&nbsp;<a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/virtual-machines\/dedicated-hosts-portal\" target=\"_blank\" rel=\"noreferrer noopener\">\u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>. \u0421\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c OS Ubuntu 18.04.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0435\u0440\u043d\u0438\u0441\u0442. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u0440\u0430\u043d\u0435\u0435, \u0431\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c 1-2 \u0447\u0430\u0441\u0430 \u043d\u0430 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438.<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u042f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<a href=\"https:\/\/pythonru.com\/go\/vps-regru\" target=\"_blank\" rel=\"noreferrer noopener\">VPS \u0441 \u043f\u043e\u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043e\u043f\u043b\u0430\u0442\u043e\u0439 \u043e\u0442 reg.ru<\/a>. \u042d\u0442\u043e \u0434\u0435\u0448\u0435\u0432\u043e\u0435 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u043f\u043e \u0446\u0435\u043d\u0435 \u043e\u0442 0,32 \u20bd\/\u0447\u0430\u0441. \u0410 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u043e\u0438\u0442\u044c 215 \u0440\u0443\u0431\u043b\u0435\u0439 \u0432 \u043c\u0435\u0441\u044f\u0446.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a VPS \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c ip (IPv4), \u043b\u043e\u0433\u0438\u043d (\u043e\u0431\u044b\u0447\u043d\u043e \u00abroot\u00bb) \u0438 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421 Linux \u0438 MacOS \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043b\u043e\u0433\u0438\u043d \u0438 ip \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@123.123.123.23<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f windows \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c&nbsp;<a href=\"https:\/\/www.microsoft.com\/en-us\/p\/ubuntu\/9nblggh4msv6?activetab=pivot:overviewtab\" target=\"_blank\" rel=\"noreferrer noopener\">\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b Ubuntu<\/a>. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 PuTTY (\u043f\u043e\u0440\u0442: 22). \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u00abyes\u00bb \u0438 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pythonru.com\/wp-content\/uploads\/2021\/02\/image-1.png\" alt=\"\u0424\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442 \u043d\u0430 Python (4\/4): \u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435\" class=\"wp-image-4739\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u0432\u0445\u043e\u0434\u0430 \u044f \u0443\u0437\u043d\u0430\u043b \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f python \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439&nbsp;<code>python -V<\/code>. \u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0441\u0442\u043e\u0438\u0442 3.6.9, \u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 3.8.5, \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h--1\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python. \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u044d\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt update\n$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev\n$ wget https:\/\/www.python.org\/ftp\/python\/3.8.5\/Python-3.8.5.tgz\n$ tar -xf Python-3.8.5.tgz\n$ cd Python-3.8.5\n$ .\/configure --enable-optimizations\n$ make  # ~15 \u043c\u0438\u043d\u0443\u0442\n$ sudo make altinstall\n$ cd \/home<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u042f \u0441\u043a\u0430\u0447\u0430\u043b \u0430\u0440\u0445\u0438\u0432, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b \u0438&nbsp;<a href=\"https:\/\/pythonru.com\/baza-znanij\/skachat-i-ustanovit-python-na-windows-10\" target=\"_blank\" rel=\"noopener\">\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b python<\/a>&nbsp;3.8.5. \u0411\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432 \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b&nbsp;<code>make<\/code>. \u0412\u0432\u0435\u0434\u0438\u0442\u0435&nbsp;<code>python3.8 -V<\/code>&nbsp;\u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/home# python3.8 -V\nPython 3.8.5 <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3.8 -m pip install --upgrade pip \n$ pip install virtualenv\n$ mkdir fonlinebot\n$ cd fonlinebot\n$ virtualenv venv\n$ source venv\/bin\/activate\n$ python -V\n$ deactivate<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 pip \u0438 virtualenv. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0430\u043f\u043a\u0443 \u00abfonlinebot\u00bb, \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 \u043d\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 \u0435\u0433\u043e.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pythonru.com\/wp-content\/uploads\/2021\/02\/image-2.png\" alt=\"\u0424\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442 \u043d\u0430 Python (4\/4): \u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435\" class=\"wp-image-4740\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Redis-server. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 Ubuntu \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u044d\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install redis-server\n$ redis-cli\n127.0.0.1:6379&gt; ping<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435&nbsp;<code>PONG<\/code>, \u0437\u043d\u0430\u0447\u0438\u0442 redis \u0437\u0430\u043f\u0443\u0449\u0435\u043d. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u044d\u0442\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u044f \u043d\u0435 \u0431\u0443\u0434\u0443. \u042d\u0442\u0430 \u0441\u043b\u0443\u0436\u0431\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 API-\u043a\u043b\u044e\u0447 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443&nbsp;<code>nano \/etc\/environment<\/code>&nbsp;\u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fonlinebot_token=\"\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435_\u043d\u0430_\u0442\u043e\u043a\u0435\u043d\"\nfonlinebot_api_key=\"\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435_\u043d\u0430_\u043a\u043b\u044e\u0447_\u0430\u043f\u0438\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 CTRL+O -&gt; Enter -&gt; CTRL+X \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043c\u0430\u0448\u0438\u043d\u0443:&nbsp;<code>sudo reboot<\/code>, \u0447\u0442\u043e \u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u043e\u0434\u0430 \u0431\u043e\u0442\u0430. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b config.py. \u0420\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># fonlinebot\/config.py\n#...\nimport datetime\nimport os\n\n\nformatter = '&#91;%(asctime)s] %(levelname)8s --- %(message)s (%(filename)s:%(lineno)s)'\nlogging.basicConfig(\n    filename=f'bot-from-{datetime.datetime.now().date()}.log',\n    filemode='w',\n    format=formatter,\n    datefmt='%Y-%m-%d %H:%M:%S',\n    level=logging.WARNING\n)\n\n\nTOKEN = os.environ.get(\"fonlinebot_token\")\n#...\n\n   'x-rapidapi-key': os.environ.get(\"fonlinebot_api_key\"),\n#...\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e (\u0442\u043e\u043a\u0435\u043d\u044b, \u043f\u0430\u0440\u043e\u043b\u0438) \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u041d\u0435\u043b\u044c\u0437\u044f \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431, stackoverflow \u0438\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0434\u0435\u043b\u0430\u043d\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-vps-1\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 VPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435&nbsp;<a href=\"https:\/\/winscp.net\/eng\/download.php\" target=\"_blank\" rel=\"noreferrer noopener\">WinSCP<\/a>. \u042d\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 VPS. \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442&nbsp;<a href=\"https:\/\/filezilla-project.org\/download.php\" target=\"_blank\" rel=\"noreferrer noopener\">Filezilla<\/a>. \u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0441\u043a\u0438\u043b\u043b\u043e\u0432 \u2014&nbsp;<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-set-up-automatic-deployment-with-git-with-a-vps\" target=\"_blank\" rel=\"noreferrer noopener\">Git<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pythonru.com\/wp-content\/uploads\/2021\/02\/zagruzka-fajlov-na-server.png\" alt=\"\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\" class=\"wp-image-4747\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0431\u0435\u0437 venv \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 Pycharm) \u0432 \u043f\u0430\u043f\u043a\u0443 home\/fonlinebot\/.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pythonru.com\/wp-content\/uploads\/2021\/02\/zagruzka-fajlov-na-server-2.png\" alt=\"\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0431\u0435\u0437 venv \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 Pycharm) \u0432 \u043f\u0430\u043f\u043a\u0443 home\/fonlinebot\/\" class=\"wp-image-4748\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u043e\u0442\u043e\u0432\u043e? \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0431\u043e\u0442\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/home\/fonlinebot\/  # \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\n$ source venv\/bin\/activate  # \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n$ pip install -r requirements.txt  # \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438\n$ python main.py  # \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0431\u043e\u0442\u0430<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443. \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u0442? \u0425\u043e\u0440\u043e\u0448\u043e, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e (ctrl+c) \u0438 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (<code>deactivate<\/code>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0438\u043d\u0438\u0448\u043d\u0430\u044f \u043f\u0440\u044f\u043c\u0430\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430, \u0431\u043e\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043e\u043d \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f. \u041d\u0430\u0441\u0442\u0440\u043e\u0435\u043c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h--2\">\u0411\u0435\u0441\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0431\u043e\u0442\u0430<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u043b\u0443\u0436\u0431\u0443 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u043e\u0442\u0430 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/lib\/systemd\/system\/fonlinebot.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Football online bot\nAfter=network.target\n\n&#91;Service]\nEnvironmentFile=\/etc\/environment\nExecStart=\/home\/fonlinebot\/venv\/bin\/python main.py\nExecReload=\/home\/fonlinebot\/venv\/bin\/python main.py\nWorkingDirectory=\/home\/fonlinebot\/\nKillMode=process\nRestart=always\nRestartSec=5\n\n&#91;Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 CTRL+O -&gt; Enter -&gt; CTRL+X \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u0427\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043b\u0443\u0436\u0431\u044b, \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u044b \u044d\u0442\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>Description<\/code>&nbsp;\u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043b\u0443\u0436\u0431\u044b.<\/li><li><code>EnvironmentFile<\/code>&nbsp;\u2014 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438.<\/li><li><code>ExecStart<\/code>&nbsp;\u0438&nbsp;<code>ExecReload<\/code>&nbsp;\u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0431\u043e\u0442\u0430.<\/li><li><code>WorkingDirectory<\/code>&nbsp;\u2014 \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 main.py.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043b\u0443\u0436\u0431\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u044d\u0442\u0438 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable fonlinebot\nsystemctl start fonlinebot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u0432 \u0431\u043e\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442.<video controls=\"\" src=\"https:\/\/pythonru.com\/wp-content\/uploads\/2021\/02\/cG13HcHBIS.mp4\"><\/video><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0431\u043e\u0442 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0442\u0430\u0442\u0443\u0441 \u0438 \u043b\u043e\u0433\u0438. \u0417\u0434\u0435\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status fonlinebot  # \u0441\u0442\u0430\u0442\u0443\u0441\njournalctl -u  fonlinebot.service  # \u043b\u043e\u0433\u0438<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u043e\u0435\u043a\u0442 \u0433\u043e\u0442\u043e\u0432, \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430! \u0412\u0441\u0435 \u044d\u0442\u0430\u043f\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430&nbsp;<a href=\"https:\/\/gitlab.com\/PythonRu\/fonlinebot\" target=\"_blank\" rel=\"noreferrer noopener\">Gitlab<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h--3\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443: \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0431\u043e\u0442\u0430, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0435\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c api \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0438, \u043c\u0435\u043d\u044e, callback \u0438 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043c\u0430\u0442\u0447\u0430,<\/li><li>\u0430\u0434\u043c\u0438\u043d\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c,<\/li><li>\u0441\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/li><li>\u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0432\u0435\u0431\u0445\u0443\u043a.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u0434\u0430\u0447\u0438!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e&nbsp;\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0430 \u043d\u0430 python, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f \u0438 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u0438\u044f \u044f \u0432\u044b\u0431\u0440\u0430\u043b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-1126","page","type-page","status-publish","hentry","category-futbolnyj-telegram-bot-na-python"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/comments?post=1126"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages\/1126\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/media?parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/categories?post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/tags?post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}