{"id":322472,"date":"2021-05-02T09:00:20","date_gmt":"2021-05-02T09:00:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=322472"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=322472","title":{"rendered":"\u041e\u043f\u043b\u0430\u0442\u0430 \u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0435 \u2014 \u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0 \u2014 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a + Telegraf + Node.js"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p>\u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0 \u2014 \u0412 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435 Telegram \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0447\u0430\u0442\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043a\u0430\u043d\u0430\u043b\u044b. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043a \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441 Telegram.<\/p>\n<p>  <\/p>\n<div class=\"oembed\"><iframe allowfullscreen id=\"608e4370388fa3867a8ff453\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/608e4370388fa3867a8ff453\"><\/iframe><\/div>\n<p>  <\/p>\n<p>\u0418 \u0432 \u044d\u0442\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u0441 <a href=\"https:\/\/nodejs.org\/en\/\" rel=\"nofollow noopener noreferrer\">Node.js<\/a> \u043d\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 <a href=\"https:\/\/telegraf.js.org\/\" rel=\"nofollow noopener noreferrer\">Telegraf.js<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0432\u0430\u0448 \u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/1d2\/ec1\/c12\/1d2ec1c12f12dbf02b5dc3ef5274b3f0.jpg\" alt=\"\u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0\"><\/p>\n<p>  <\/p>\n<h2 id=\"platezhi-20\">\u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0<\/h2>\n<p>  <\/p>\n<p>\u041f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0435 \u0431\u043e\u0442\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 Telegram \u0441 2017 \u0433\u043e\u0434\u0430. \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u044b \u0438 \u0443\u0441\u043b\u0443\u0433\u0438 \u0432\u0440\u043e\u0434\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0438\u0446\u0446\u044b, \u043d\u0435 \u043f\u043e\u043a\u0438\u0434\u0430\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u0421 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u0433\u043e \u0434\u043d\u044f \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u044b\u043c\u0438 \u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e 8-\u043c\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0432 \u043b\u044e\u0431\u043e\u043c \u0447\u0430\u0442\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043a\u0430\u043d\u0430\u043b\u044b.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c 200 \u0441\u0442\u0440\u0430\u043d \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e01\/03e\/697\/e0103e69754e5d322c63a7036d8736e3.jpg\" alt=\"\u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0\"><\/p>\n<p>  <\/p>\n<p>Telegram \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u0432 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0438 \u0445\u0440\u0430\u043d\u044f\u0442 \u0432\u0441\u044e \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u041d\u0438 Telegram, \u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0431\u043e\u0442\u043e\u0432 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u043b\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u2013 \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 Telegram \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432. \u041f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0435\u0432\u044b\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430, \u043a\u0430\u0444\u0435 \u0438\u043b\u0438 \u043c\u0430\u0433\u0430\u0437\u0438\u043d.<\/p>\n<p>  <\/p>\n<h2 id=\"sozdayom-bota-v-telegram\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u043e\u0442\u0430 \u0432 Telegram<\/h2>\n<p>  <\/p>\n<p>\u0411\u043e\u0442 \u0432 Telegram \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"http:\/\/telegram.me\/BotFather\" rel=\"nofollow noopener noreferrer\">@BotFather<\/a>. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u043c\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>\/newbot<\/code>, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043c\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u0438 \u0430\u0434\u0440\u0435\u0441. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\u041e\u043f\u043b\u0430\u0442\u0430 \u0432 Telegram \u0431\u043e\u0442\u0435<\/code> \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c <code>sber_pay_test_bot<\/code>.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6fe\/eba\/034\/6feeba03446fb66cf08e40da9bbe9448.jpg\" alt=\"newbot\"><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u043d\u0435 \u0437\u0430\u043d\u044f\u0442, \u0430 \u0438\u043c\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, BotFather \u043f\u0440\u0438\u0448\u043b\u0435\u0442 \u0432 \u043e\u0442\u0432\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u2014 \u00ab\u043a\u043b\u044e\u0447\u043e\u043c\u00bb \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0431\u043e\u0442\u0443.<\/p>\n<p>  <\/p>\n<p>\u0412\u041d\u0418\u041c\u0410\u041d\u0418\u0415! \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"sozdaem-proekt-nodejs\">\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 Node.js<\/h2>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443. <\/p>\n<p>  <\/p>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">mkdir sber_pay_test_bot &amp;&amp; cd sber_pay_test_bot<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">npm init <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 <code>package.json<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0437\u0434\u0435 \u043d\u0430\u0436\u0430\u0442\u044c <code>enter<\/code><\/p>\n<p>  <\/p>\n<p>\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0444\u0430\u0439\u043b <code>index.js<\/code> \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u0431\u043e\u0442. <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">touch index.js    <\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"telegrafjs\">Telegraf.js<\/h2>\n<p>  <\/p>\n<p>C\u0442\u0430\u0432\u0438\u043c <a href=\"https:\/\/telegraf.js.org\" rel=\"nofollow noopener noreferrer\">telegraf.js<\/a> \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0430. <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">npm install telegraf@3.38 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <code>dotenv<\/code> \u2014 \u044d\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <code>.env<\/code> \u0432 <code>process.env.<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c <code>nodemon<\/code> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 node.js \u043f\u0443\u0442\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <code>node<\/code> \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435.<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">npm install dotenv nodemon<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 <code>package.json<\/code><\/p>\n<p>  <\/p>\n<pre><code class=\"json\">&quot;scripts&quot;: {     &quot;start&quot;: &quot;nodemon index&quot; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <a href=\"https:\/\/telegraf.js.org\" rel=\"nofollow noopener noreferrer\">telegraf.js<\/a>, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0431\u043e\u0442\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const { Telegraf } = require('telegraf') require('dotenv').config()  const bot = new Telegraf(process.env.BOT_TOKEN) \/\/\u0441\u044e\u0434\u0430 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u043b botFather  bot.start((ctx) =&gt; ctx.reply('Welcome')) \/\/\u043e\u0442\u0432\u0435\u0442 \u0431\u043e\u0442\u0430 \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \/start bot.help((ctx) =&gt; ctx.reply('Send me a sticker')) \/\/\u043e\u0442\u0432\u0435\u0442 \u0431\u043e\u0442\u0430 \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \/help bot.on('sticker', (ctx) =&gt; ctx.reply('')) \/\/bot.on \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0438\u043a\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043b\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f bot.hears('hi', (ctx) =&gt; ctx.reply('Hey there')) \/\/ bot.hears \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e - &quot;hi&quot; bot.launch() \/\/ \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u043e\u0442\u0430<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <code>.env<\/code> \u043a\u0443\u0434\u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <code>BOT_TOKEN<\/code> \u043a\u043b\u0430\u0434\u0435\u043c \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u043b <a href=\"http:\/\/telegram.me\/BotFather\" rel=\"nofollow noopener noreferrer\">@BotFather<\/a> <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">BOT_TOKEN='\u0441\u044e\u0434\u0430'<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u043e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">npm run start<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u043e\u0442\u0430<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/92b\/ee0\/010\/92bee00104479629dc277b0631027348.jpg\" alt=\"check bot\"><\/p>\n<p>  <\/p>\n<h2 id=\"poluchaem-provider_token-ot-sberbankpaymentbot\">\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c PROVIDER_TOKEN \u043e\u0442 @SberbankPaymentBot<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <code>PROVIDER_TOKEN<\/code> \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <code>merchantLogin<\/code> \u0432 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"https:\/\/www.sberbank.ru\/ru\/s_m_business\/bankingservice\/acquiring_total\" rel=\"nofollow noopener noreferrer\">\u0443\u0441\u043b\u0443\u0433\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u043d\u0442-\u044d\u043a\u0432\u0430\u0439\u0440\u0438\u043d\u0433 \u0432 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a\u0435<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b \u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <a href=\"http:\/\/telegram.me\/BotFather\" rel=\"nofollow noopener noreferrer\">@BotFather<\/a> \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>\/mybots<\/code>, \u0433\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 <code>Payments<\/code><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/650\/bd8\/280\/650bd8280816d9ed15484e90b9d0f82c.jpg\" alt=\"Payments\"><\/p>\n<p>  <\/p>\n<p>\u0413\u0434\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/057\/0b7\/a02\/0570b7a02a80c3180e58422916dd1481.jpg\" alt=\"Payments\"><\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <code>Connect \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a Live<\/code><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/231\/46f\/068\/23146f068460fa8e988c482153dabe28.jpg\" alt=\"Payments\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u0441 \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0435\u0442 \u043d\u0430 <code>@SberbankPaymentBot<\/code>, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 <code>merchantLogin<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 <code>-api<\/code> \u0438\u043b\u0438 <code>-operator<\/code>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a: <code>P71XXXXXXX21<\/code>. \u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u043b, \u0443 \u043c\u0435\u043d\u044f \u0443\u0448\u043b\u043e \u043d\u0430 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0443 \u0441 \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/485\/2b0\/9ce\/4852b09cefd5e70910a21249284a4c1b.jpg\" alt=\"SberbankPaymentBot\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 <a href=\"http:\/\/telegram.me\/BotFather\" rel=\"nofollow noopener noreferrer\">@BotFather<\/a> \u0432\u044b\u0434\u0430\u0441\u0442 \u0432\u0430\u043c \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <code>PROVIDER_TOKEN<\/code> \u0444\u0430\u0439\u043b\u0430 <code>.env<\/code><\/p>\n<p>  <\/p>\n<pre><code class=\"json\">PROVIDER_TOKEN='41018XXXX:LIVE:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a5f\/ea7\/60b\/a5fea760b09577aa2efb0ad9523b144e.jpg\" alt=\"SberbankPaymentBot\"><\/p>\n<p>  <\/p>\n<h2 id=\"podklyuchaem-oplatu-v-prilozhenii\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u043f\u043b\u0430\u0442\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438<\/h2>\n<p>  <\/p>\n<p>\u041f\u0438\u0448\u0435\u043c \u0432 <code>index.js<\/code> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const { Telegraf } = require('telegraf') require('dotenv').config()  const bot = new Telegraf(process.env.BOT_TOKEN) \/\/\u0441\u044e\u0434\u0430 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u043b botFather  const getInvoice = (id) =&gt; {   const invoice = {     chat_id: id, \/\/ \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0447\u0430\u0442\u0430 \u0438\u043b\u0438 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430     provider_token: process.env.PROVIDER_TOKEN, \/\/ \u0442\u043e\u043a\u0435\u043d \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 \u0431\u043e\u0442 @SberbankPaymentBot      start_parameter: 'get_access', \/\/\u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0433\u043b\u0443\u0431\u0438\u043d\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u043f\u0443\u0441\u0442\u044b\u043c, \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c\u00bb, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0443\u044e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0442\u0443 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0447\u0435\u0442. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u0443\u0441\u0442\u043e, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 URL \u0441 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0431\u043e\u0442\u0430 (\u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u043f\u043b\u0430\u0442\u044b) \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430.     title: 'InvoiceTitle', \/\/ \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, 1-32 \u0441\u0438\u043c\u0432\u043e\u043b\u0430     description: 'InvoiceDescription', \/\/ \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, 1-255 \u0437\u043d\u0430\u043a\u043e\u0432     currency: 'RUB', \/\/ \u0422\u0440\u0435\u0445\u0431\u0443\u043a\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0430\u043b\u044e\u0442\u044b ISO 4217     prices: [{ label: 'Invoice Title', amount: 100 * 100 }], \/\/ \u0420\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u0446\u0435\u043d, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON 100 \u043a\u043e\u043f\u0435\u0435\u043a * 100 = 100 \u0440\u0443\u0431\u043b\u0435\u0439     payload: { \/\/ \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0430-\u0444\u0430\u043a\u0442\u0443\u0440\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u043e\u0442\u043e\u043c, 1\u2013128 \u0431\u0430\u0439\u0442. \u042d\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432.       unique_id: `${id}_${Number(new Date())}`,       provider_token: process.env.PROVIDER_TOKEN      }   }    return invoice }  bot.use(Telegraf.log())  bot.hears('pay', (ctx) =&gt; { . \/\/ \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e - &quot;pay&quot;   return ctx.replyWithInvoice(getInvoice(ctx.from.id)) \/\/  \u043c\u0435\u0442\u043e\u0434 replyWithInvoice \u0434\u043b\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0430   })  bot.on('pre_checkout_query', (ctx) =&gt; ctx.answerPreCheckoutQuery(true)) \/\/ \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e \u043e\u043f\u043b\u0430\u0442\u0435  bot.on('successful_payment', async (ctx, next) =&gt; { \/\/ \u043e\u0442\u0432\u0435\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u043b\u0430\u0442\u044b   await ctx.reply('SuccessfulPayment') })  bot.launch()<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 Telegraf <a href=\"http:\/\/49.213.81.43\/static\/tool\/thuocbot\/node_modules\/telegraf\/docs\/#\/\" rel=\"nofollow noopener noreferrer\">replyWithInvoice<\/a> \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/core.telegram.org\/bots\/api#sendinvoice\" rel=\"nofollow noopener noreferrer\">telegram.sendInvoice<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u0447\u0435\u0442\u043e\u0432. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u043e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>yarn start<\/code> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043b\u0438 \u043e\u043f\u043b\u0430\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043f\u043b\u0430\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0432 \u043d\u0430\u0448\u0438\u0445 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0430\u0445 <a href=\"https:\/\/t.me\/javascriptcamp_bot\" rel=\"nofollow noopener noreferrer\">JavaScript Bot<\/a> \u2014 \u044d\u0442\u043e \u0431\u043e\u0442 \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043f\u043e \u043d\u0430\u0448\u0438\u043c \u043a\u0443\u0440\u0441\u0430\u043c JavaScript, React Native, TypeScript, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u0442\u0435 \u043f\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0445 \u0441\u043b\u043e\u0432 \u043f\u043e \u044d\u043c\u043e\u0434\u0437\u0438 <a href=\"https:\/\/t.me\/englishmoji_bot\" rel=\"nofollow noopener noreferrer\">Englishmoji<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"problemy-ili-voprosy\">\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b?<\/h2>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0445 \u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435 <a href=\"https:\/\/t.me\/telegraf_ru\" rel=\"nofollow noopener noreferrer\">\u0411\u043e\u0442\u044b \u043d\u0430 Telegraf<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448\u0438 <a href=\"https:\/\/t.me\/javascriptapp\" rel=\"nofollow noopener noreferrer\">\u043d\u043e\u0432\u043e\u0441\u0442\u0438<\/a> \u0438 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/275\/c1b\/ed3\/275c1bed38cf33aeecaed4dbdeb5853b.png\" alt=\"JavaScript Camp\"><\/p>\n<\/div>\n<p> \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\/post\/555460\/\"> https:\/\/habr.com\/ru\/post\/555460\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p>\u041f\u043b\u0430\u0442\u0435\u0436\u0438 2.0 \u2014 \u0412 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435 Telegram \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0447\u0430\u0442\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u043a\u0430\u043d\u0430\u043b\u044b. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043a \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441 Telegram.<\/p>\n<p>  <\/p>\n<div class=\"oembed\"><iframe allowfullscreen id=\"608e4370388fa3867a8ff453\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/608e4370388fa3867a8ff453\"><\/iframe><\/div>\n<p>  <\/p>\n<p>\u0418 \u0432 \u044d\u0442\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u0441 <a href=\"https:\/\/nodejs.org\/en\/\" rel=\"nofollow noopener noreferrer\">Node.js<\/a> \u043d\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 <a href=\"https:\/\/telegraf.js.org\/\" rel=\"nofollow noopener noreferrer\">Telegraf.js<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0432\u0430\u0448 \u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0421\u0431\u0435\u0440\u0431\u0430\u043d\u043a.<\/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-322472","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/322472","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=322472"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/322472\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}