{"id":466978,"date":"2025-07-14T15:00:50","date_gmt":"2025-07-14T15:00:50","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=466978"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=466978","title":{"rendered":"<span>\u041f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 \u0432 Telegram<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 GitLab \u0432 Telegram.\u00a0<\/p>\n<h3>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u044c?<\/h3>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u0431\u043e\u0442\u043e\u043c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u0442 BotFather, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u201cstart\u201d \u0438 \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code>I can help you create and manage Telegram bots. If you're new to the Bot API, please see the manual.   You can control me by sending these commands:  \/newbot - create a new bot  \/mybots - edit your bots  Edit Bots  \/setname - change a bot's name  \/setdescription - change bot description  \/setabouttext - change bot about info  \/setuserpic - change bot profile photo  \/setcommands - change the list of commands  \/deletebot - delete a bot  Bot Settings  \/token - generate authorization token  \/revoke - revoke bot access token  \/setinline - toggle inline mode  \/setinlinegeo - toggle inline location requests  \/setinlinefeedback - change inline feedback settings  \/setjoingroups - can your bot be added to groups?  \/setprivacy - toggle privacy mode in groups   Web Apps  \/myapps - edit your web apps  \/newapp - create a new web app  \/listapps - get a list of your web apps  \/editapp - edit a web app  \/deleteapp - delete an existing web app  Games  \/mygames - edit your games  \/newgame - create a new game  \/listgames - get a list of your games  \/editgame - edit a game  \/deletegame - delete an existing game<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u044e <code>\/newbot - create a new bot<\/code>, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0438 username, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 bot.\u00a0<\/p>\n<p>\u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u0448\u043b\u0435\u0442 BotFather, \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u0422\u0430\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f HTTP API access token, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u0442. \u0421 \u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0423\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u0430 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0430\u0432\u0430\u0442\u0430\u0440\u043a\u0443, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.\u00a0<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c telegram-\u0433\u0440\u0443\u043f\u043f\u0443, \u043a\u0443\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043e\u0442 \u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u0430\u0436\u043d\u044b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u0418 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0448\u0430\u0433\u0443 \u4e00 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u00a0<code>@your_bot \/start<\/code> \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/api.telegram.org\/bot&lt;YourBOTToken&gt;\/getUpdates\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/api.telegram.org\/bot&lt;YourBOTToken&gt;\/getUpdates<\/code><\/a>.<\/p>\n<p>\u0412 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c access token \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u0412 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0433\u0440\u0430\u0444\u0443 chat, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c id \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0433\u043e.\u00a0<\/p>\n<p>\u0421\u0430\u043c \u0431\u044d\u043a\u0430\u043f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f bash-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0440\u0430\u0441\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ansible. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u0434\u0435 \u043c\u043e\u0433\u0443\u0442 \u0447\u0430\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b jinja2.\u00a0<\/p>\n<p>\u00a0\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u4e00 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u043e\u0442 \u0441\u043c\u043e\u0433 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0443. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u4e00 ID \u0447\u0430\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 acess token \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code>TG_CHAT_ID=\"{{ gitlab_backup_chat_id }}\"<\/code><\/p>\n<p><code>TG_BOT_TOKEN=\"{{ gitlab_backup_tg_token }}\"<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u4e00 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Telegram:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<li>\n<p><code>8<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Send message to telegram function<\/code><\/p>\n<p><code>sendTelegram() {<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0local MESSAGE=\"$1\"<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0curl -s -X POST \"<\/code><a href=\"https:\/\/api.telegram.org\/bot%24TG_BOT_TOKEN\/sendMessage\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/api.telegram.org\/bot$TG_BOT_TOKEN\/sendMessage<\/code><\/a><code>\" \\<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-d \"chat_id=$TG_CHAT_ID\" \\<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-d \"text=$MESSAGE\" &gt; \/dev\/null<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u041a\u0430\u0436\u0434\u0443\u044e \u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441 \u043d\u0435\u043a\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Check for free disk space<\/code><\/p>\n<p><code>FREE_SPACE=$(df \"$BACKUP_DIR\" | awk 'NR==2 {print $4}')<\/code><\/p>\n<p><code>if [ \"$FREE_SPACE\" -lt \"$THRESHOLD\" ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] Not enough free space in $TARGET_DIR. Minimum required: 60 GB. Gitlab backup aborted.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] Not enough free space in $TARGET_DIR. Minimum required: 60 GB. Gitlab backup aborted.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u0430:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<li>\n<p><code>8<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Create a backup<\/code><\/p>\n<p><code>log \"[INFO] Starting GitLab backup creation.\"<\/code><\/p>\n<p><code>docker exec -t gitlab gitlab-backup create &gt;&gt; \"$LOG_FILE\" 2&gt;&amp;1<\/code><\/p>\n<p><code>if [ $? -ne 0 ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] GitLab backup creation failed.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] GitLab backup creation failed.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u0418 \u043f\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0431\u044d\u043a\u0430\u043f\u0430 \u0432 \u0431\u0430\u043a\u0435\u0442:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code>s3cmd put \"$LATEST_BACKUP\" s3:\/\/$YC_BUCKET\/$YC_FOLDER\/ &gt;&gt; \"$LOG_FILE\" 2&gt;&amp;1<\/code><\/p>\n<p><code>if [ $? -ne 0 ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] Failed to upload backup to Yandex Cloud bucket $YC_BUCKET.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] Failed to upload backup to Yandex Cloud bucket $YC_BUCKET.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u0417\u0430 \u0441\u0447\u0435\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.\u00a0<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0431\u044d\u043a\u0430\u043f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f, \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c, \u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u0410 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u4e00 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438.\u00a0<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/927542\/\"> https:\/\/habr.com\/ru\/articles\/927542\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 GitLab \u0432 Telegram.\u00a0<\/p>\n<h3>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u044c?<\/h3>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u0431\u043e\u0442\u043e\u043c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u0442 BotFather, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u201cstart\u201d \u0438 \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code>I can help you create and manage Telegram bots. If you're new to the Bot API, please see the manual.   You can control me by sending these commands:  \/newbot - create a new bot  \/mybots - edit your bots  Edit Bots  \/setname - change a bot's name  \/setdescription - change bot description  \/setabouttext - change bot about info  \/setuserpic - change bot profile photo  \/setcommands - change the list of commands  \/deletebot - delete a bot  Bot Settings  \/token - generate authorization token  \/revoke - revoke bot access token  \/setinline - toggle inline mode  \/setinlinegeo - toggle inline location requests  \/setinlinefeedback - change inline feedback settings  \/setjoingroups - can your bot be added to groups?  \/setprivacy - toggle privacy mode in groups   Web Apps  \/myapps - edit your web apps  \/newapp - create a new web app  \/listapps - get a list of your web apps  \/editapp - edit a web app  \/deleteapp - delete an existing web app  Games  \/mygames - edit your games  \/newgame - create a new game  \/listgames - get a list of your games  \/editgame - edit a game  \/deletegame - delete an existing game<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u044e <code>\/newbot - create a new bot<\/code>, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0438 username, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 bot.\u00a0<\/p>\n<p>\u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u0448\u043b\u0435\u0442 BotFather, \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u0422\u0430\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f HTTP API access token, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u0442. \u0421 \u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0423\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u0430 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0430\u0432\u0430\u0442\u0430\u0440\u043a\u0443, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.\u00a0<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c telegram-\u0433\u0440\u0443\u043f\u043f\u0443, \u043a\u0443\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043e\u0442 \u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u0430\u0436\u043d\u044b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u0418 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0448\u0430\u0433\u0443 \u4e00 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u00a0<code>@your_bot \/start<\/code> \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/api.telegram.org\/bot&lt;YourBOTToken&gt;\/getUpdates\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/api.telegram.org\/bot&lt;YourBOTToken&gt;\/getUpdates<\/code><\/a>.<\/p>\n<p>\u0412 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c access token \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u0412 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0433\u0440\u0430\u0444\u0443 chat, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c id \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0433\u043e.\u00a0<\/p>\n<p>\u0421\u0430\u043c \u0431\u044d\u043a\u0430\u043f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f bash-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0440\u0430\u0441\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ansible. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u0434\u0435 \u043c\u043e\u0433\u0443\u0442 \u0447\u0430\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b jinja2.\u00a0<\/p>\n<p>\u00a0\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u4e00 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u043e\u0442 \u0441\u043c\u043e\u0433 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0443. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u4e00 ID \u0447\u0430\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 acess token \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code>TG_CHAT_ID=\"{{ gitlab_backup_chat_id }}\"<\/code><\/p>\n<p><code>TG_BOT_TOKEN=\"{{ gitlab_backup_tg_token }}\"<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u4e00 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 Telegram:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<li>\n<p><code>8<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Send message to telegram function<\/code><\/p>\n<p><code>sendTelegram() {<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0local MESSAGE=\"$1\"<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0curl -s -X POST \"<\/code><a href=\"https:\/\/api.telegram.org\/bot%24TG_BOT_TOKEN\/sendMessage\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/api.telegram.org\/bot$TG_BOT_TOKEN\/sendMessage<\/code><\/a><code>\" \\<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-d \"chat_id=$TG_CHAT_ID\" \\<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0-d \"text=$MESSAGE\" &gt; \/dev\/null<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u041a\u0430\u0436\u0434\u0443\u044e \u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441 \u043d\u0435\u043a\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Check for free disk space<\/code><\/p>\n<p><code>FREE_SPACE=$(df \"$BACKUP_DIR\" | awk 'NR==2 {print $4}')<\/code><\/p>\n<p><code>if [ \"$FREE_SPACE\" -lt \"$THRESHOLD\" ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] Not enough free space in $TARGET_DIR. Minimum required: 60 GB. Gitlab backup aborted.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] Not enough free space in $TARGET_DIR. Minimum required: 60 GB. Gitlab backup aborted.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u0430:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<li>\n<p><code>7<\/code><\/p>\n<\/li>\n<li>\n<p><code>8<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code># Create a backup<\/code><\/p>\n<p><code>log \"[INFO] Starting GitLab backup creation.\"<\/code><\/p>\n<p><code>docker exec -t gitlab gitlab-backup create &gt;&gt; \"$LOG_FILE\" 2&gt;&amp;1<\/code><\/p>\n<p><code>if [ $? -ne 0 ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] GitLab backup creation failed.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] GitLab backup creation failed.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u0418 \u043f\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0431\u044d\u043a\u0430\u043f\u0430 \u0432 \u0431\u0430\u043a\u0435\u0442:<\/p>\n<ul>\n<li>\n<p><code>1<\/code><\/p>\n<\/li>\n<li>\n<p><code>2<\/code><\/p>\n<\/li>\n<li>\n<p><code>3<\/code><\/p>\n<\/li>\n<li>\n<p><code>4<\/code><\/p>\n<\/li>\n<li>\n<p><code>5<\/code><\/p>\n<\/li>\n<li>\n<p><code>6<\/code><\/p>\n<\/li>\n<\/ul>\n<p><code>s3cmd put \"$LATEST_BACKUP\" s3:\/\/$YC_BUCKET\/$YC_FOLDER\/ &gt;&gt; \"$LOG_FILE\" 2&gt;&amp;1<\/code><\/p>\n<p><code>if [ $? -ne 0 ]; then<\/code><\/p>\n<p><code>\u00a0\u00a0log \"[ERROR] Failed to upload backup to Yandex Cloud bucket $YC_BUCKET.\"<\/code><\/p>\n<p><code>\u00a0\u00a0sendTelegram \"[ERROR] Failed to upload backup to Yandex Cloud bucket $YC_BUCKET.\"<\/code><\/p>\n<p><code>\u00a0\u00a0exit 1<\/code><\/p>\n<p><code>fi<\/code><\/p>\n<p>\u0417\u0430 \u0441\u0447\u0435\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.\u00a0<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0431\u044d\u043a\u0430\u043f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f, \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c, \u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0438 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u0410 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u4e00 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438.\u00a0<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/927542\/\"> https:\/\/habr.com\/ru\/articles\/927542\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-466978","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/466978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466978"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/466978\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}