{"id":482709,"date":"2026-06-07T14:32:47","date_gmt":"2026-06-07T14:32:47","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482709"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482709","title":{"rendered":"\u041f\u044f\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c FastAPI-\u043c\u043e\u043d\u043e\u043b\u0438\u0442\u0435: HTMX \u0432\u043c\u0435\u0441\u0442\u043e React, \u0433\u0440\u0430\u0431\u043b\u0438 Telegram Mini App \u0438 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430 Stars"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u042f\u0440\u043e\u0441\u043b\u0430\u0432, \u0432 \u0441\u0435\u0442\u0438 \u2014 SwairIt. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 todo-\u043b\u0438\u0441\u0442 \u043d\u0430 FastAPI, \u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c <a href=\"http:\/\/getdoday.ru\" rel=\"noopener noreferrer nofollow\"><code>getdoday.ru<\/code><\/a> \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u0442\u0443\u0434\u0438\u044f \u0438\u0437 \u043f\u044f\u0442\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432: todo-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432, \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A, \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u041f\u0414\u0414 \u0438 Telegram-\u0438\u0433\u0440\u0430. \u0412\u0441\u0451 \u044d\u0442\u043e \u2014 \u043e\u0434\u0438\u043d FastAPI-\u043c\u043e\u043d\u043e\u043b\u0438\u0442 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 React, ~76 000 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u0438 1200+ \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0442\u043e, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a \u043e\u0434\u0438\u043d FastAPI-\u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0448\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u0432\u044b\u0431\u0440\u0430\u043b HTMX \u0432\u043c\u0435\u0441\u0442\u043e React \u0438 \u043e \u0447\u0451\u043c \u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u043b;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 Telegram Mini App, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0448\u043b\u0438 \u0447\u0430\u0441\u044b, \u0438 <code>monkey-patch<\/code> DNS, \u043e\u0436\u0438\u0432\u0448\u0438\u0439 \u0431\u043e\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0434\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u043d\u0430 Telegram Stars \u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u0434\u0435\u0432-\u043f\u0440\u043e\u0446\u0435\u0441\u0441: <code>mypy --strict<\/code>, <code>ruff<\/code>, CI \u0438 \u0430\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0438\u0448\u0443 \u044f \u0432 \u043f\u0430\u0440\u0435 \u0441 Claude Code \u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c AI-\u0430\u0433\u0435\u043d\u0442\u043e\u043c. \u041d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u044e \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0438\u0436\u0435 \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041f\u043e\u0435\u0445\u0430\u043b\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b23\/bb2\/b16\/b23bb2b16b99e883d50f62f027338063.png\" alt=\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f getdoday.ru\" title=\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f getdoday.ru\" width=\"971\" height=\"1280\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b23\/bb2\/b16\/b23bb2b16b99e883d50f62f027338063.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b23\/bb2\/b16\/b23bb2b16b99e883d50f62f027338063.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0413\u043b\u0430\u0432\u043d\u0430\u044f getdoday.ru<\/figcaption><\/div>\n<\/figure>\n<h3>\u0427\u0442\u043e \u0436\u0438\u0432\u0451\u0442 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c<\/h3>\n<p><a href=\"http:\/\/getdoday.ru\" rel=\"noopener noreferrer nofollow\"><code>getdoday.ru<\/code><\/a> \u2014 \u044d\u0442\u043e \u0432\u0438\u0442\u0440\u0438\u043d\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0434\u0443\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b. \u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u0434\u0435\u043b\u044f\u0442 \u0431\u0430\u0437\u0443, \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Doday Tasks<\/strong> (<code>\/<\/code>) \u2014 \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 todo: \u0432\u0435\u0431-\u043a\u0430\u0431\u0438\u043d\u0435\u0442, Telegram Mini App \u0438 \u0447\u0430\u0442-\u0431\u043e\u0442. \u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u044b P1\u2013P4, \u0434\u0435\u0434\u043b\u0430\u0439\u043d\u044b, \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0441\u0435\u043a\u0446\u0438\u0438, kanban, \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0432\u043e\u0434 \u043d\u0430 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>Lessio<\/strong> (<code>\/lessio<\/code>) \u2014 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432: \u0443\u0441\u043b\u0443\u0433\u0438, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u043e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 Telegram Stars.<\/p>\n<\/li>\n<li>\n<p><strong>Razbery<\/strong> (<code>\/qa\/<\/code>) \u2014 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043c\u0438: 16 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432, 5\u201311 \u043a\u043b\u0430\u0441\u0441. \u041d\u0435 \u00ab\u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043e\u0442\u0432\u0435\u0442\u00bb, \u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435. \u0420\u0430\u0441\u0442\u0451\u0442 \u0437\u0430 \u0441\u0447\u0451\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>Doday \u041f\u0414\u0414<\/strong> (<code>\/pdd\/<\/code>) \u2014 \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u0413\u0418\u0411\u0414\u0414: 1600 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u0432\u0443\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 (\u0410\u0412\u041c \u0438 CD), \u044d\u043a\u0437\u0430\u043c\u0435\u043d \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c, \u043c\u0430\u0440\u0430\u0444\u043e\u043d, \u043f\u043e\u0438\u0441\u043a, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>Tap Tower<\/strong> (<code>\/taptower<\/code>) \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f Telegram-\u0438\u0433\u0440\u0430 (Mini App).<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u00ab\u0441\u0440\u0435\u0437\u00bb \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e, \u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u2014 \u043f\u0440\u043e \u0441\u0442\u0435\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439.<\/p>\n<h3>\u0421\u0442\u0435\u043a: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 React<\/h3>\n<p>\u042f \u0443\u0447\u0443 JavaScript \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c Python, \u0438 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0432\u0435\u0437\u0442\u0438 \u0447\u0442\u043e-\u0442\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0435, \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 React \u0441\u0442\u0430\u043b\u043e \u0431\u044b \u0442\u043e\u0440\u043c\u043e\u0437\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0435\u043a \u044f \u0432\u044b\u0431\u0438\u0440\u0430\u043b \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0435 \u0431\u043e\u043b\u0438 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u00bb. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u043b\u043e\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0427\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043b<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e\u0447\u0435\u043c\u0443<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Backend<\/p>\n<\/td>\n<td>\n<p align=\"left\">FastAPI + async SQLAlchemy 2.0 + Pydantic v2<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f\u044b \u0432\u0435\u0437\u0434\u0435, <code>mypy --strict<\/code> \u0437\u0435\u043b\u0451\u043d\u044b\u0439, OpenAPI \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0411\u0430\u0437\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">PostgreSQL 16 (asyncpg) + Alembic<\/p>\n<\/td>\n<td>\n<p align=\"left\">Production-grade, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0430 \u043d\u0435 SQLite<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0428\u0430\u0431\u043b\u043e\u043d\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">Jinja2, server-side render<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0433\u0438\u0434\u0440\u0430\u0442\u0430\u0446\u0438\u0438, \u0431\u044b\u0441\u0442\u0440\u044b\u0439 first paint<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\">HTMX 2<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0432\u0430\u043f\u044b \u043a\u0443\u0441\u043a\u043e\u0432 HTML \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u2014 SPA-\u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 JSON-API \u0438 \u0431\u0435\u0437 \u0431\u0430\u043d\u0434\u043b\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0438\u043a\u0440\u043e\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">Alpine.js<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>x-data<\/code>, <code>x-show<\/code>, <code>x-model<\/code> \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 JS-\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 HTML<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0442\u0438\u043b\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">Tailwind (CDN)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u043e\u043b\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Auth<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0432\u043e\u0439 \u043d\u0430 argon2 + itsdangerous<\/p>\n<\/td>\n<td>\n<p align=\"left\">Cookie-\u0441\u0435\u0441\u0441\u0438\u0438, \u0431\u0435\u0437 JWT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041b\u043e\u0433\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">structlog (JSON)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0413\u0440\u0435\u043f\u0430\u0435\u043c \u043f\u043e <code>chat_id<\/code>, <code>task_id<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">uv + ruff + mypy &#8212;strict + pre-commit<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u043b\u0438\u043d\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">CI\/\u0434\u0435\u043f\u043b\u043e\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\">GitHub Actions + cron-poll<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>git push<\/code> \u2192 \u043f\u0440\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430 ~60 \u0441\u0435\u043a\u0443\u043d\u0434<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0441\u043f\u043e\u0440\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u2014 Tailwind \u0447\u0435\u0440\u0435\u0437 CDN \u0432 \u043f\u0440\u043e\u0434\u0435. \u0414\u0430, \u044d\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438 \u043e\u0447\u0438\u0449\u0435\u043d\u043d\u044b\u0439 CSS, \u0438 \u0432\u0435\u0441 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432\u0435\u043b\u0438\u043a\u043e\u0432\u0430\u0442. \u041d\u043e \u043d\u043e\u043b\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 <code>node_modules<\/code> \u043e\u043a\u0443\u043f\u0430\u044e\u0442 \u044d\u0442\u043e \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438; \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 PostCSS \u044f \u043f\u0435\u0440\u0435\u0439\u0434\u0443, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c.<\/p>\n<p>\u0410 \u0432\u043e\u0442 HTMX \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c. \u042f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u0440\u0443\u0447\u043d\u043e\u0433\u043e <code>fetch<\/code> + polling \u043d\u0430 <code>hx-get<\/code> + <code>hx-swap<\/code> \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0431\u043e\u043b\u0435\u0435 \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0439 UI, \u0447\u0435\u043c \u0443 \u0447\u0430\u0441\u0442\u0438 React-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0438\u0434\u0435\u043b \u0434\u043e \u044d\u0442\u043e\u0433\u043e. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043d\u0435\u0442 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 JSON, \u043d\u0435\u0442 \u0434\u0438\u0444\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e DOM, \u043d\u0435\u0442 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 JS \u2014 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u0443\u0441\u043e\u043a HTML \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0443\u0437\u0435\u043b. \u041d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<h3>\u041e\u0434\u0438\u043d \u043c\u043e\u043d\u043e\u043b\u0438\u0442, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u044f\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u0441\u043f\u0430\u0433\u0435\u0442\u0442\u0438, \u044f \u0434\u0435\u0440\u0436\u0443\u0441\u044c \u0434\u0432\u0443\u0445 \u043f\u0440\u0430\u0432\u0438\u043b.<\/p>\n<p><strong>\u041f\u0435\u0440\u0432\u043e\u0435 \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e \u0444\u0438\u0447\u0435, \u0430 \u043d\u0435 \u043f\u043e \u0441\u043b\u043e\u044e.<\/strong> \u041d\u0435 \u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u043f\u043a\u0438 <code>models\/<\/code>, <code>routers\/<\/code>, <code>services\/<\/code>, \u0430 \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:<\/p>\n<pre><code>app\/  auth\/        {router,service,models,schemas,deps}.py  tasks\/       {router,service,models,schemas}.py  billing\/     {router,service,models,products,stars}.py  lessio\/      ...  qa\/          ...  pdd\/         {router,service,models,seo,seed_load}.py  telegram\/    bot.py  main.py      # \u0442\u0443\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0441\u0451, \u0447\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u0439 \u0444\u0438\u0447\u0435, \u043b\u0435\u0436\u0438\u0442 \u0440\u044f\u0434\u043e\u043c. \u041d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430 <code>app\/&lt;feature&gt;\/<\/code> \u0438 \u043f\u0430\u0440\u0430 \u0441\u0442\u0440\u043e\u043a \u0432 <a href=\"http:\/\/main.py\" rel=\"noopener noreferrer nofollow\"><code>main.py<\/code><\/a>:<\/p>\n<pre><code class=\"python\">app.include_router(pdd_router)       # HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 \/pddapp.include_router(pdd_api_router)   # JSON-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u043d\u0430 \/api\/pdd<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0412\u0442\u043e\u0440\u043e\u0435 \u2014 \u043e\u0431\u0449\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0430 \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/strong> \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f (<code>app\/auth\/<\/code><a href=\"http:\/\/deps.py\" rel=\"noopener noreferrer nofollow\"><code>deps.py<\/code><\/a>), \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430 Stars, \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430 \u043f\u0438\u0441\u0435\u043c, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f <code>sitemap.xml<\/code>, \u0431\u043e\u0442 \u2014 \u044d\u0442\u043e \u043e\u0431\u0449\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438. \u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u0435\u043b\u0430\u043b \u041f\u0414\u0414, \u043c\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e, \u043d\u0438 \u043e\u043f\u043b\u0430\u0442\u0443, \u043d\u0438 SEO-\u043e\u0431\u0432\u044f\u0437\u043a\u0443: \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043a\u0443\u0441\u043a\u0430\u043c. \u0420\u043e\u0443\u0442\u0435\u0440\u044b \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b (<code>\/pdd<\/code>, <code>\/qa<\/code>, <code>\/lessio<\/code>), \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043a\u0443\u0441\u043e\u043a URL-\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u00ab\u0440\u043e\u0443\u0442\u0435\u0440 \u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u0435\u0440\u0432\u0438\u0441, \u0430 \u043d\u0435 \u0432 ORM \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e\u00bb \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043b\u043e\u0438 \u0447\u0438\u0441\u0442\u044b\u043c\u0438: \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0431\u0430\u0437\u043e\u0439 \u2014 \u0432 <a href=\"http:\/\/service.py\" rel=\"noopener noreferrer nofollow\"><code>service.py<\/code><\/a>, \u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0448\u0430\u0431\u043b\u043e\u043d.<\/p>\n<h3>Telegram Mini App: \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u0440\u0430\u0431\u043b\u0438<\/h3>\n<p>Mini App \u2014 \u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0434\u043e\u0432\u043e\u043b\u0435\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e, \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0442\u0430, \u0433\u0434\u0435 \u0433\u0440\u0430\u0431\u043b\u0435\u0439 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043a\u043e\u0434\u0430. \u0420\u0430\u0437\u0431\u0435\u0440\u0443 \u0447\u0435\u0442\u044b\u0440\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0448\u043b\u0438 \u0447\u0430\u0441\u044b.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b7b\/195\/b31\/b7b195b31bfcd194eb356cf19bed83a1.png\" alt=\"Mini App \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c, \u043a\u043e\u043b\u044c\u0446\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0442\u0430\u0431\u0430\u043c\u0438\" title=\"Mini App \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c, \u043a\u043e\u043b\u044c\u0446\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0442\u0430\u0431\u0430\u043c\u0438\" width=\"390\" height=\"844\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b7b\/195\/b31\/b7b195b31bfcd194eb356cf19bed83a1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b7b\/195\/b31\/b7b195b31bfcd194eb356cf19bed83a1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>Mini App \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c, \u043a\u043e\u043b\u044c\u0446\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0442\u0430\u0431\u0430\u043c\u0438<\/em><\/figcaption><\/div>\n<\/figure>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f \u21161 \u2014 themeParams \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043f\u0430\u043b\u0438\u0442\u0440\u0443<\/h4>\n<p>Telegram WebApp SDK \u043e\u0442\u0434\u0430\u0451\u0442 <code>themeParams<\/code>: \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430, \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0430\u043a\u0446\u0435\u043d\u0442\u0430 \u0438\u0437 \u0442\u0435\u043c\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0432\u0437\u044f\u0442\u044c \u0438\u0445 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u0447\u0442\u043e\u0431\u044b Mini App \u00ab\u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u00bb. \u042d\u0442\u043e \u043b\u043e\u0432\u0443\u0448\u043a\u0430.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Telegram \u0432 \u0441\u0432\u0435\u0442\u043b\u043e\u0439 \u0442\u0435\u043c\u0435, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 <code>bg_color: #ffffff<\/code>. \u0418 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 <code>rgba(255,255,255,0.06)<\/code> \u0434\u043b\u044f shimmer-\u044d\u0444\u0444\u0435\u043a\u0442\u0430, \u0442\u043e\u043d\u043a\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b <code>rgba(255,255,255,0.08)<\/code>, \u0447\u0438\u043f\u044b \u043f\u043e\u0434 \u0442\u0451\u043c\u043d\u044b\u0439 \u0444\u043e\u043d \u2014 \u043d\u0430 \u0431\u0435\u043b\u043e\u043c \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u0443\u044e \u043a\u0430\u0448\u0443. \u042f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441\u043b\u0435\u043f\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b <code>themeParams<\/code> \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u0430\u0442\u044c \u044f\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u00ab\u0442\u0451\u043c\u043d\u0430\u044f \/ \u0441\u0432\u0435\u0442\u043b\u0430\u044f \/ \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f\u00bb. \u0421\u0432\u0435\u0442\u043b\u0443\u044e \u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0441 \u043d\u0443\u043b\u044f \u043d\u0430 \u043f\u0430\u043b\u0438\u0442\u0440\u0435 slate, \u0430 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b \u0438\u0437 \u0447\u0443\u0436\u0438\u0445 \u0446\u0432\u0435\u0442\u043e\u0432. \u0412\u044b\u0431\u043e\u0440 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <code>localStorage<\/code>; \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044f \u0437\u043e\u0432\u0443 <code>tg.setHeaderColor(...)<\/code> \u0438 <code>tg.setBackgroundColor(...)<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0441\u0438\u043b\u0441\u044f \u0438 chrome-\u0431\u0430\u0440 Telegram \u043f\u043e\u0432\u0435\u0440\u0445 Mini App. \u0410\u043d\u0442\u0438-\u043c\u0435\u0440\u0446\u0430\u043d\u0438\u0435 \u2014 \u0447\u0435\u0440\u0435\u0437 inline-\u0441\u043a\u0440\u0438\u043f\u0442 \u0432 <code>&lt;head&gt;<\/code> \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e paint.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f \u21162 \u2014 api.telegram.org \u043f\u043e IPv6 \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 = \u0441\u043c\u0435\u0440\u0442\u044c \u0431\u043e\u0442\u0430<\/h4>\n<p>\u0411\u043e\u0442 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 VPS. \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 DNS \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 \u043e\u0442\u0434\u0430\u0451\u0442 \u0434\u043b\u044f <a href=\"http:\/\/api.telegram.org\" rel=\"noopener noreferrer nofollow\"><code>api.telegram.org<\/code><\/a> \u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 IPv4 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 <code>httpx<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 python-telegram-bot \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442 \u0445\u043e\u0441\u0442, \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u0432\u0438\u0441\u0438\u0442 \u0432 connect-timeout \u2014 \u0438 \u0431\u043e\u0442 \u043c\u043e\u043b\u0447\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u044b\u0439 IPv4 \u0443 Telegram \u0435\u0441\u0442\u044c: <code>curl --resolve api.telegram.org:443:149.154.167.220 https:\/\/...<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041f\u0440\u043e\u0441\u0442\u043e DNS \u043e\u0442\u0434\u0430\u0451\u0442 \u043d\u0435 \u0442\u043e. Sudo \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 \u043d\u0435\u0442, <code>\/etc\/hosts<\/code> \u043d\u0435 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 <code>monkey-patch<\/code> \u043d\u0430 \u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440. \u0412\u0430\u0436\u043d\u0430\u044f \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c: \u043f\u0430\u0442\u0447\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0438 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432 \u0438\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438:<\/p>\n<pre><code class=\"python\">import asyncio.base_eventsimport socketfrom typing import Any_TELEGRAM_API_IPS = (\"149.154.167.220\",)_FORCED_HOSTS = {\"api.telegram.org\"}def _force_ipv4_resolve() -&gt; None:    # 1. socket.getaddrinfo \u2014 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432 (curl-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0438 sync-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438)    sync_orig = socket.getaddrinfo    def _v4_sync(host: Any, *args: Any, **kwargs: Any) -&gt; Any:        if host in _FORCED_HOSTS:            port = args[0] if args else kwargs.get(\"port\", 0)            return [                (socket.AF_INET, socket.SOCK_STREAM, 6, \"\", (ip, port))                for ip in _TELEGRAM_API_IPS            ]        return sync_orig(host, *args, **kwargs)    socket.getaddrinfo = _v4_sync    # 2. asyncio.BaseEventLoop.getaddrinfo \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432    #    (httpx \u2192 httpcore \u2192 anyio \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 event-loop.getaddrinfo, \u0430 \u041d\u0415 socket)    async_orig = asyncio.base_events.BaseEventLoop.getaddrinfo    async def _v4_async(self: Any, host: Any, port: Any = 0, *a: Any, **k: Any) -&gt; Any:        if host in _FORCED_HOSTS:            return [                (socket.AF_INET, socket.SOCK_STREAM, 6, \"\", (ip, port))                for ip in _TELEGRAM_API_IPS            ]        return await async_orig(self, host, port, *a, **k)    asyncio.base_events.BaseEventLoop.getaddrinfo = _v4_async  # type: ignore[method-assign]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e: <code>httpx<\/code> \u0447\u0435\u0440\u0435\u0437 <code>httpcore<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 resolution, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0442\u0447\u0438 \u043d\u0430 <code>getaddrinfo<\/code> \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043b. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043b\u043e\u0439 \u043d\u0438\u0436\u0435 \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0431\u044d\u043a\u0435\u043d\u0434 <code>httpcore<\/code>, \u0447\u0442\u043e\u0431\u044b \u0434\u043b\u044f <a href=\"http:\/\/api.telegram.org\" rel=\"noopener noreferrer nofollow\"><code>api.telegram.org<\/code><\/a> TCP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0448\u043b\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 IP, \u0430 SNI \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c TLS \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c:<\/p>\n<pre><code class=\"python\">import httpxfrom httpcore._backends.auto import AutoBackendfrom telegram.request import HTTPXRequestdef _make_telegram_request() -&gt; HTTPXRequest:    class _HardcodedIPBackend(AutoBackend):        async def connect_tcp(self, host: Any, port: Any, *a: Any, **k: Any) -&gt; Any:            if host in _FORCED_HOSTS:                # \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e TCP-\u0430\u0434\u0440\u0435\u0441; SNI\/\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0432\u044b\u0448\u0435                # \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f api.telegram.org \u2192 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u043e \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e                host = _TELEGRAM_API_IPS[0]            return await super().connect_tcp(host, port, *a, **k)    transport = httpx.AsyncHTTPTransport()    transport._pool._network_backend = _HardcodedIPBackend()    return HTTPXRequest(...)  # \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u044d\u0442\u043e\u0442 transport \u0432 \u0431\u043e\u0442<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434: \u0443 <code>httpx \u2192 httpcore \u2192 anyio<\/code> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0440\u0435\u0437\u043e\u043b\u0432\u0430, \u0438 \u043f\u0430\u0442\u0447 \u043d\u0430 <code>socket.getaddrinfo<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435. \u0414\u043b\u044f <code>anyio<\/code>-\u043f\u0443\u0442\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e <code>connect_tcp<\/code> \u0443 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 <code>httpcore<\/code>.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f \u21163 \u2014 \u0443 Telegram \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u043e\u0432, \u0438 \u043d\u0435 \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b \u043f\u0430\u0442\u0447, \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438 IP (\u0442\u0440\u0438 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430 Telegram). \u0411\u043e\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u0438\u0441\u0435\u043b: <code>ss -tnp<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b <code>SYN-SENT<\/code> \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0430 <code>SYN-ACK<\/code> \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0441\u044f. \u042f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043a\u0430\u0436\u0434\u044b\u0439 IP \u0441 \u043f\u0440\u043e\u0434\u0430 <code>curl<\/code>-\u043e\u043c \u2014 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d. \u041d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0432\u0438\u0434\u0438\u043c\u043e, \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c <code>httpx<\/code> \u0432\u044b\u0431\u0438\u0440\u0430\u043b \u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0435 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0430 \u043a\u0430\u043a \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f, \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u043b \u043d\u0430 \u00ab\u043c\u0451\u0440\u0442\u0432\u044b\u0439\u00bb \u2192 connect-timeout \u2192 polling \u0441\u0442\u043e\u044f\u043b. \u042f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0434\u0438\u043d \u0440\u0430\u0431\u043e\u0447\u0438\u0439 IP \u2014 \u0431\u043e\u0442 \u043e\u0436\u0438\u043b. \u042d\u0442\u043e\u0442 \u0432\u0435\u0447\u0435\u0440 \u0441\u0442\u043e\u0438\u043b \u043c\u043d\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<h4>\u0413\u0440\u0430\u0431\u043b\u044f \u21164 \u2014 post_init \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 \u043c\u043e\u043b\u0447\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/h4>\n<p>\u0412 python-telegram-bot v21 \u044f \u043f\u043e\u0432\u0435\u0441\u0438\u043b \u043a\u043e\u043b\u043b\u0431\u044d\u043a \u043d\u0430 \u0441\u0442\u0430\u0440\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\">application = Application.builder().token(TOKEN).build()application.post_init = _post_init   # \u2190 \u043c\u043e\u043b\u0447\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u043d\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e <code>setMyCommands<\/code> \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435, \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u043e\u0442\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u043b\u0434\u0435\u0440:<\/p>\n<pre><code class=\"python\">application = (    Application.builder().token(TOKEN).post_init(_post_init).build())<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0430\u0441 \u0434\u0435\u0431\u0430\u0433\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u043b \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u041c\u043e\u0440\u0430\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0443 \u0431\u0438\u043b\u0434\u0435\u0440\u043e\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e <code>build()<\/code>, \u0430 \u043d\u0435 \u043f\u043e\u0441\u043b\u0435.<\/p>\n<h3>\u0411\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430 Telegram Stars: single-merchant \u0438 entitlement<\/h3>\n<p>\u0421\u0430\u043c\u043e\u0437\u0430\u043d\u044f\u0442\u043e\u043c\u0443 \u0431\u0435\u0437 \u044e\u0440\u043b\u0438\u0446\u0430 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0447\u0435\u0440\u0435\u0437 Telegram Stars: \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u043d\u0438 \u041e\u041a\u0412\u042d\u0414, \u043d\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u0439 \u0441\u0447\u0451\u0442. \u041d\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u0443\u043f\u0435\u0440\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441\u0430.<\/p>\n<p><strong>Stars \u2014 \u044d\u0442\u043e single-merchant.<\/strong> \u041f\u043b\u0430\u0442\u0451\u0436 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430 \u0438 \u0432\u044b\u0434\u0430\u0451\u0442 \u00ab\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u044e\u00bb \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0443. \u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044f \u0438 \u043f\u0435\u0440\u0435\u0441\u043b\u0430\u0442\u044c \u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c\u0443 \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u0443 \u2014 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u0435\u043d \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0439 \u0430\u0433\u0435\u043d\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u044e\u0431\u0430\u044f \u0438\u0434\u0435\u044f \u00ab\u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438\u00bb, \u0433\u0434\u0435 \u043f\u043b\u0430\u0442\u044f\u0442 \u043e\u0434\u043d\u0438, \u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435, \u043e\u0442\u043f\u0430\u0434\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443: \u043a\u043e\u0434 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u0430\u043a \u043d\u0435 \u0443\u043c\u0435\u0435\u0442. \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0441\u0442\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u2014 \u0432\u044b \u043f\u0440\u043e\u0434\u0430\u0451\u0442\u0435 \u0441\u0432\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e, \u044f \u0437\u0430\u0432\u0451\u043b \u0435\u0434\u0438\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0438 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u2014 <strong>entitlement<\/strong>. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435: \u0447\u0442\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0432\u044b\u0434\u0430\u0451\u0442. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 (<code>pro<\/code>) \u0442\u0440\u043e\u0433\u0430\u0435\u0442 \u043e\u0431\u0449\u0438\u0439 \u0444\u043b\u0430\u0433 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f; \u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00ab\u041f\u0414\u0414 Pro\u00bb) \u0432\u044b\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0451 \u043f\u0440\u0430\u0432\u043e \u2014 <code>pdd_pro<\/code>, \u043d\u0435 \u0437\u0430\u0434\u0435\u0432\u0430\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b:<\/p>\n<pre><code class=\"python\">@dataclass(frozen=True)class Product:    code: str    title: str    stars_amount: int    duration_months: int | None          # None = \u0431\u0435\u0441\u0441\u0440\u043e\u0447\u043d\u043e    grants_tier: str | None = None        # \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 (Doday Pro)    grants_entitlement: str | None = None # \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u043e\u0434\u043d\u0443 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c (pdd_pro)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u0443\u043f\u043b\u0435\u043d\u043e. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0442\u0430\u0440\u0438\u0444\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435, \u0430 entitlement-\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0432\u043e\u0451 \u043f\u0440\u0430\u0432\u043e, \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444:<\/p>\n<pre><code class=\"python\">async def apply_successful_payment(session, *, payload, ...) -&gt; None:    product = get_product(...)    # \u0442\u0430\u0440\u0438\u0444\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b (Doday Pro) \u2014 \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u044e\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 pro    if product.grants_tier is not None:        user.tier = product.grants_tier        user.pro_until = _extend(user.pro_until, product.duration_months)    # entitlement-\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b (\u041f\u0414\u0414) \u2014 \u0432\u044b\u0434\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u043e\u0434\u043d\u0443 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c,    # \u043d\u0435 \u0437\u0430\u0434\u0435\u0432\u0430\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444    if product.grants_entitlement is not None:        await _grant_entitlement(session, user.id, product)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u00ab\u041f\u0414\u0414 Pro\u00bb \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e: \u0441\u0432\u043e\u044f \u0446\u0435\u043d\u0430, \u0441\u0432\u043e\u044f \u0432\u043e\u0440\u043e\u043d\u043a\u0430, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0443\u043f\u043a\u0430 Doday Pro \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u041f\u0414\u0414 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435, \u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430.<\/p>\n<h3>SEO \u043a\u0430\u043a \u043c\u043e\u0442\u043e\u0440 \u0440\u043e\u0441\u0442\u0430<\/h3>\n<p>\u0414\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u2014 Razbery \u0438 Doday \u041f\u0414\u0414 \u2014 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0432\u043e\u043a\u0440\u0443\u0433 \u043a\u043e\u043c\u043f\u0430\u0443\u043d\u0434\u044f\u0449\u0435\u0433\u043e\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f, \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0435\u0447\u043d\u044b\u0435 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0433\u043e\u0434\u0430\u043c\u0438, \u0430 \u043c\u043e\u043d\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0436\u0438\u0432\u0451\u0442 \u0432 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u043c \u0441\u043b\u043e\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c5f\/f92\/4d9\/c5ff924d9109a916551e19c40ae40926.png\" alt=\"Razbery, \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043c\u0438\" title=\"Razbery, \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043c\u0438\" width=\"1280\" height=\"800\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c5f\/f92\/4d9\/c5ff924d9109a916551e19c40ae40926.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c5f\/f92\/4d9\/c5ff924d9109a916551e19c40ae40926.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>Razbery, \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043c\u0438<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u041f\u0414\u0414 \u044f \u0432\u0437\u044f\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u0413\u0418\u0411\u0414\u0414 (\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0432\u0441\u0435 \u041f\u0414\u0414-\u0441\u0435\u0440\u0432\u0438\u0441\u044b), \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u0432 \u0441\u0432\u043e\u044e \u0441\u0445\u0435\u043c\u0443 \u0438 \u0437\u0430\u0441\u0435\u044f\u043b 1600 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0441 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u043f\u043e \u0434\u0432\u0443\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c. \u041a\u0430\u0436\u0434\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430; \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u043e\u0442\u0434\u0430\u0451\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 <code>schema.org\/Question<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u0432 \u0432\u044b\u0434\u0430\u0447\u0435. <code>sitemap.xml<\/code> \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0431\u0430\u0437\u044b \u0438 \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/61e\/c2f\/91d\/61ec2f91d82dcbcb1cc5f3726cff034c.png\" alt=\"\u0445\u0430\u0431 Doday \u041f\u0414\u0414 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438\" title=\"\u0445\u0430\u0431 Doday \u041f\u0414\u0414 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438\" width=\"1280\" height=\"800\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/61e\/c2f\/91d\/61ec2f91d82dcbcb1cc5f3726cff034c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/61e\/c2f\/91d\/61ec2f91d82dcbcb1cc5f3726cff034c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>\u0445\u0430\u0431 Doday \u041f\u0414\u0414 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438<\/em><\/figcaption><\/div>\n<\/figure>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9f8\/d18\/cf4\/9f8d18cf474ee5114275334cbf1354eb.png\" alt=\"\u0431\u0438\u043b\u0435\u0442 \u041f\u0414\u0414 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c: \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u0444\u043e\u0442\u043e \u0434\u043e\u0440\u043e\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439\" title=\"\u0431\u0438\u043b\u0435\u0442 \u041f\u0414\u0414 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c: \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u0444\u043e\u0442\u043e \u0434\u043e\u0440\u043e\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439\" width=\"390\" height=\"844\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/9f8\/d18\/cf4\/9f8d18cf474ee5114275334cbf1354eb.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9f8\/d18\/cf4\/9f8d18cf474ee5114275334cbf1354eb.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>\u0431\u0438\u043b\u0435\u0442 \u041f\u0414\u0414 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c: \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u0444\u043e\u0442\u043e \u0434\u043e\u0440\u043e\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0432\u0435\u0440\u0445 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u2014 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0441\u043b\u043e\u0439 \u0437\u0430 Stars: \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440 \u043e\u0448\u0438\u0431\u043e\u043a, \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0430 \u043f\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u043b\u0430\u0431\u044b\u0445 \u0442\u0435\u043c. \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u0438 \u0435\u0441\u0442\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c9a\/812\/1ae\/c9a8121aea16a260c0bf0d8dfead38e7.png\" alt=\"Lessio, \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432\" title=\"Lessio, \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432\" width=\"1280\" height=\"800\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c9a\/812\/1ae\/c9a8121aea16a260c0bf0d8dfead38e7.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c9a\/812\/1ae\/c9a8121aea16a260c0bf0d8dfead38e7.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>Lessio, \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432<\/em><\/figcaption><\/div>\n<\/figure>\n<h3>\u0414\u0435\u0432-\u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/h3>\n<p>\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u044f \u0434\u0435\u0440\u0436\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0430 \u043d\u0435 \u0441\u0438\u043b\u043e\u0439 \u0432\u043e\u043b\u0438:<\/p>\n<ul>\n<li>\n<p><code><strong>mypy --strict<\/strong><\/code> \u043d\u0430 \u0432\u0441\u0451\u043c <code>app\/<\/code> \u2014 \u0442\u0438\u043f\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b, <code>Any<\/code> \u0442\u043e\u0447\u0435\u0447\u043d\u043e \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code><strong>ruff<\/strong><\/code> (\u043f\u0440\u0430\u0432\u0438\u043b\u0430 <code>E, F, I, UP, B, S, A, RUF<\/code>) + \u0444\u043e\u0440\u043c\u0430\u0442\u0442\u0435\u0440.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439 <strong>\u043b\u0438\u043d\u0442\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432<\/strong>: \u043b\u043e\u0432\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0432 <code>x-data<\/code> Alpine \u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>pre-commit hook<\/strong>: \u0444\u043e\u0440\u043c\u0430\u0442 + \u043b\u0438\u043d\u0442 + \u0442\u0438\u043f\u044b + \u043b\u0438\u043d\u0442\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u043d\u0435 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 master.<\/p>\n<\/li>\n<li>\n<p><strong>CI<\/strong> \u043d\u0430 GitHub Actions: \u0442\u0435\u0441\u0442\u044b \u0438 \u043b\u0438\u043d\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 push.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0435\u043f\u043b\u043e\u0439<\/strong> \u2014 cron-poll \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u0434\u0435\u043b\u0430\u0435\u0442 <code>git reset --hard origin\/master<\/code>, \u0441\u0442\u0430\u0432\u0438\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 Alembic \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 uvicorn. \u041f\u043e\u0441\u043b\u0435 <code>git push<\/code> \u043f\u0440\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443, \u0431\u0435\u0437 \u0440\u0443\u0447\u043d\u044b\u0445 \u0448\u0430\u0433\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 \u043f\u0430\u0440\u0435 \u0441 AI-\u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u0440\u0430\u0437 \u0443\u0436 \u044f \u0435\u0451 \u043d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u044e. \u041b\u043e\u0433\u0438\u043a\u0430 \u0442\u0430\u043a\u0430\u044f: \u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u0443\u044e, \u043a\u0430\u043a\u0443\u044e \u0444\u0438\u0447\u0443 \u0445\u043e\u0447\u0443; \u0430\u0433\u0435\u043d\u0442 \u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0434\u0438\u0437\u0430\u0439\u043d; \u043f\u043e\u0441\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u00ab\u043e\u043a\u00bb \u2014 \u043f\u0438\u0448\u0435\u0442 \u043a\u043e\u0434, \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442 \u0442\u0435\u0441\u0442\u044b, \u0447\u0438\u043d\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442. \u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u00ab\u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b AI\u00bb, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u0430\u0436\u043d\u0435\u0435 \u0434\u0440\u0443\u0433\u043e\u0435:<\/p>\n<ul>\n<li>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e \u044f<\/strong> \u2014 \u043a\u0430\u043a\u0438\u0435 \u0444\u0438\u0447\u0438, \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0441\u0442\u0435\u043a\u0435, \u043a\u0430\u043a\u043e\u0439 UX. \u0410\u0433\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u044f \u0432\u044b\u0431\u0438\u0440\u0430\u044e \u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>\u042f \u0447\u0438\u0442\u0430\u044e \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0438\u0444\u0444<\/strong> \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c \u0442\u0435\u0441\u0442\u044b, \u043f\u043e\u0442\u043e\u043c \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u2014 \u043c\u043e\u044f<\/strong> \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e \u0444\u0438\u0447\u0435, <code>mypy --strict<\/code>, \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 React, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 entitlement \u0434\u043b\u044f \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430. \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0433\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u0438 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043b\u043e\u0432\u0438\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438.<\/strong> \u0412\u0441\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0432\u044b\u0448\u0435 \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u044b, \u043f\u0440\u043e\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0435 \u0432 <code>ss -tnp<\/code>, <code>journalctl<\/code> \u0438 <code>curl --resolve<\/code>; \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u2014 \u00ab\u0432\u043e\u0442 \u0444\u0438\u043a\u0441, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u00bb.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0432\u044b\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u2014 \u044d\u0442\u043e \u043d\u0435 \u00ab\u043f\u0438\u0441\u0430\u0442\u044c <code>for i in range(n)<\/code> \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438\u00bb, \u0430 \u0434\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044f \u043d\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e; \u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0447\u0438\u0442\u0430\u044e \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n<h3>\u0426\u0438\u0444\u0440\u044b<\/h3>\n<ul>\n<li>\n<p>~76 000 \u0441\u0442\u0440\u043e\u043a: ~33 000 Python \u0432 <code>app\/<\/code>, ~25 000 Jinja-\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, ~19 000 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>39 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432 <code>app\/<\/code> \u2014 \u043e\u0442 <code>auth<\/code> \u0434\u043e <code>pdd<\/code>.<\/p>\n<\/li>\n<li>\n<p>1200+ \u0442\u0435\u0441\u0442\u043e\u0432, \u0437\u0435\u043b\u0451\u043d\u044b\u0445 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c push (GitHub Actions).<\/p>\n<\/li>\n<li>\n<p>50 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u0432, \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438; 49 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 Alembic.<\/p>\n<\/li>\n<li>\n<p>5 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043e\u0434\u043d\u0430 \u0431\u0430\u0437\u0430, \u043e\u0434\u0438\u043d \u0431\u043e\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u043f\u043b\u043e\u0439 ~60 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 <code>git push<\/code>; <code>mypy --strict<\/code> + <code>ruff<\/code> + \u043b\u0438\u043d\u0442\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0432 pre-commit, \u0431\u0435\u0437 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h3>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0434\u0435\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437 2\u20133 \u0447\u0435\u043b\u043e\u0432\u0435\u043a.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043b\u0430\u0442\u043d\u044b\u0439 \u0441\u043b\u043e\u0439 \u041f\u0414\u0414 \u0438 Lessio: \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0432\u043e\u0437\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0451\u0436 \u0447\u0435\u0440\u0435\u0437 Stars \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b \u00ab\u0437\u0430 \u044d\u0442\u043e \u043f\u043b\u0430\u0442\u044f\u0442\u00bb.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u2014 \u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0447\u0435\u0440\u0435\u0437 Tauri \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u0435: HTMX \u0438 Tailwind \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u044f\u0442\u0441\u044f \u0432 webview.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0451<\/h3>\n<ul>\n<li>\n<p><strong>HTMX \u0434\u0430\u0451\u0442 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 SPA \u0431\u0435\u0437 \u0431\u0430\u043d\u0434\u043b\u0430.<\/strong> Server-rendered HTML + <code>hx-swap<\/code> \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0447\u0430\u0441\u0442\u044c React-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u044f \u0432\u0438\u0434\u0435\u043b. \u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e, \u043d\u043e \u0434\u043b\u044f CRUD-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u2014 \u043f\u043e\u0447\u0442\u0438 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code><strong>monkey-patch<\/strong><\/code><strong> DNS \u0440\u0435\u0448\u0430\u0435\u043c, \u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u043b\u043e\u0438.<\/strong> \u0423 <code>httpx \u2192 httpcore \u2192 anyio<\/code> \u0440\u0430\u0437\u043d\u044b\u0439 resolution; \u043f\u0430\u0442\u0447 \u043d\u0430 <code>socket.getaddrinfo<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435, \u0434\u043b\u044f <code>anyio<\/code> \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c <code>connect_tcp<\/code> \u0443 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 <code>httpcore<\/code>.<\/p>\n<\/li>\n<li>\n<p><code><strong>themeParams<\/strong><\/code><strong> \u0432 Telegram Mini App \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043b\u0435\u043f\u0443\u044e.<\/strong> \u0412 \u0441\u0432\u0435\u0442\u043b\u043e\u0439 \u0442\u0435\u043c\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0431\u0435\u043b\u044b\u0439 \u0444\u043e\u043d \u043f\u043e\u0434 \u043f\u0430\u043b\u0438\u0442\u0440\u0443, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0442\u0451\u043c\u043d\u044b\u0439. \u041d\u0430\u0434\u0451\u0436\u043d\u0435\u0435 \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u043f\u043b\u044e\u0441 \u044f\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>Telegram Stars \u2014 single-merchant.<\/strong> \u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u043f\u043b\u0430\u0442\u043d\u043e\u0435, \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043b\u043e\u0436\u0438\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043d\u044c\u0433\u0438 \u0438\u0434\u0443\u0442 \u043d\u0430 \u0431\u0430\u043b\u0430\u043d\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430 \u0438 \u0432\u044b \u043f\u0440\u043e\u0434\u0430\u0451\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442; \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441 \u00ab\u043e\u0434\u043d\u0438 \u043f\u043b\u0430\u0442\u044f\u0442, \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u00bb \u0442\u0430\u043a \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0438\u043b\u0438 \u0432 issues \u043d\u0430 GitHub.<\/p>\n<p><a href=\"https:\/\/github.com\/SwairIt\/doday\" rel=\"noopener noreferrer nofollow\"><strong>\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 GitHub (MIT)<\/strong><\/a><\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0447\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438.<\/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\/articles\/1044600\/\">https:\/\/habr.com\/ru\/articles\/1044600\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u042f\u0440\u043e\u0441\u043b\u0430\u0432, \u0432 \u0441\u0435\u0442\u0438 \u2014 SwairIt. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 todo-\u043b\u0438\u0441\u0442 \u043d\u0430 FastAPI, \u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c getdoday.ru \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u0442\u0443\u0434\u0438\u044f \u0438\u0437 \u043f\u044f\u0442\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432: todo-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432, \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A, \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u041f\u0414\u0414 \u0438 Telegram-\u0438\u0433\u0440\u0430. \u0412\u0441\u0451 \u044d\u0442\u043e \u2014 \u043e\u0434\u0438\u043d FastAPI-\u043c\u043e\u043d\u043e\u043b\u0438\u0442 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 React, ~76 000 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u0438 1200+ \u0442\u0435\u0441\u0442\u043e\u0432.\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0442\u043e, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445:\u043a\u0430\u043a \u043e\u0434\u0438\u043d FastAPI-\u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0448\u0443;\u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u0432\u044b\u0431\u0440\u0430\u043b HTMX \u0432\u043c\u0435\u0441\u0442\u043e React \u0438 \u043e \u0447\u0451\u043c \u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u043b;\u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 Telegram Mini App, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0448\u043b\u0438 \u0447\u0430\u0441\u044b, \u0438 monkey-patch DNS, \u043e\u0436\u0438\u0432\u0448\u0438\u0439 \u0431\u043e\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0434\u0435;\u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u043d\u0430 Telegram Stars \u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442;\u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u0434\u0435\u0432-\u043f\u0440\u043e\u0446\u0435\u0441\u0441: mypy &#8212;strict, ruff, CI \u0438 \u0430\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443.\u041f\u0438\u0448\u0443 \u044f \u0432 \u043f\u0430\u0440\u0435 \u0441 Claude Code \u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c AI-\u0430\u0433\u0435\u043d\u0442\u043e\u043c. \u041d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u044e \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0438\u0436\u0435 \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041f\u043e\u0435\u0445\u0430\u043b\u0438.\u0413\u043b\u0430\u0432\u043d\u0430\u044f getdoday.ru\u0427\u0442\u043e \u0436\u0438\u0432\u0451\u0442 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043cgetdoday.ru \u2014 \u044d\u0442\u043e \u0432\u0438\u0442\u0440\u0438\u043d\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0434\u0443\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b. \u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u0434\u0435\u043b\u044f\u0442 \u0431\u0430\u0437\u0443, \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430:Doday Tasks (\/) \u2014 \u043a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 todo: \u0432\u0435\u0431-\u043a\u0430\u0431\u0438\u043d\u0435\u0442, Telegram Mini App \u0438 \u0447\u0430\u0442-\u0431\u043e\u0442. \u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u044b P1\u2013P4, \u0434\u0435\u0434\u043b\u0430\u0439\u043d\u044b, \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0441\u0435\u043a\u0446\u0438\u0438, kanban, \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0432\u043e\u0434 \u043d\u0430 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435.Lessio (\/lessio) \u2014 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0434\u043b\u044f \u0440\u0435\u043f\u0435\u0442\u0438\u0442\u043e\u0440\u043e\u0432: \u0443\u0441\u043b\u0443\u0433\u0438, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0437\u0430\u043f\u0438\u0441\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u043e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 Telegram Stars.Razbery (\/qa\/) \u2014 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 Q&amp;A \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u0430\u043c\u0438: 16 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432, 5\u201311 \u043a\u043b\u0430\u0441\u0441. \u041d\u0435 \u00ab\u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043e\u0442\u0432\u0435\u0442\u00bb, \u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435. \u0420\u0430\u0441\u0442\u0451\u0442 \u0437\u0430 \u0441\u0447\u0451\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430.Doday \u041f\u0414\u0414 (\/pdd\/) \u2014 \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0431\u0438\u043b\u0435\u0442\u043e\u0432 \u0413\u0418\u0411\u0414\u0414: 1600 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u0432\u0443\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 (\u0410\u0412\u041c \u0438 CD), \u044d\u043a\u0437\u0430\u043c\u0435\u043d \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c, \u043c\u0430\u0440\u0430\u0444\u043e\u043d, \u043f\u043e\u0438\u0441\u043a, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a.Tap Tower (\/taptower) \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f Telegram-\u0438\u0433\u0440\u0430 (Mini App).\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u00ab\u0441\u0440\u0435\u0437\u00bb \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e, \u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u2014 \u043f\u0440\u043e \u0441\u0442\u0435\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439.\u0421\u0442\u0435\u043a: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 React\u042f \u0443\u0447\u0443 JavaScript \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c Python, \u0438 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0432\u0435\u0437\u0442\u0438 \u0447\u0442\u043e-\u0442\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0435, \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 React \u0441\u0442\u0430\u043b\u043e \u0431\u044b \u0442\u043e\u0440\u043c\u043e\u0437\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0435\u043a \u044f \u0432\u044b\u0431\u0438\u0440\u0430\u043b \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0435 \u0431\u043e\u043b\u0438 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u00bb. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a:\u0421\u043b\u043e\u0439\u0427\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043b\u041f\u043e\u0447\u0435\u043c\u0443BackendFastAPI + async SQLAlchemy 2.0 + Pydantic v2\u0422\u0438\u043f\u044b \u0432\u0435\u0437\u0434\u0435, mypy &#8212;strict \u0437\u0435\u043b\u0451\u043d\u044b\u0439, OpenAPI \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0411\u0430\u0437\u0430PostgreSQL 16 (asyncpg) + AlembicProduction-grade, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0430 \u043d\u0435 SQLite\u0428\u0430\u0431\u043b\u043e\u043d\u044bJinja2, server-side render\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0433\u0438\u0434\u0440\u0430\u0442\u0430\u0446\u0438\u0438, \u0431\u044b\u0441\u0442\u0440\u044b\u0439 first paint\u0418\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432HTMX 2\u0421\u0432\u0430\u043f\u044b \u043a\u0443\u0441\u043a\u043e\u0432 HTML \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u2014 SPA-\u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 JSON-API \u0438 \u0431\u0435\u0437 \u0431\u0430\u043d\u0434\u043b\u0430\u041c\u0438\u043a\u0440\u043e\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435Alpine.jsx-data, x-show, x-model \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 JS-\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 HTML\u0421\u0442\u0438\u043b\u0438Tailwind (CDN)\u041d\u043e\u043b\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438Auth\u0421\u0432\u043e\u0439 \u043d\u0430 argon2 + itsdangerousCookie-\u0441\u0435\u0441\u0441\u0438\u0438, \u0431\u0435\u0437 JWT\u041b\u043e\u0433\u0438structlog (JSON)\u0413\u0440\u0435\u043f\u0430\u0435\u043c \u043f\u043e chat_id, task_id\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044buv + ruff + mypy &#8212;strict + pre-commit\u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u043b\u0438\u043d\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u0435CI\/\u0434\u0435\u043f\u043b\u043e\u0439GitHub Actions + cron-pollgit push \u2192 \u043f\u0440\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430 ~60 \u0441\u0435\u043a\u0443\u043d\u0434\u0421\u0430\u043c\u044b\u0439 \u0441\u043f\u043e\u0440\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u2014 Tailwind \u0447\u0435\u0440\u0435\u0437 CDN \u0432 \u043f\u0440\u043e\u0434\u0435. \u0414\u0430, \u044d\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438 \u043e\u0447\u0438\u0449\u0435\u043d\u043d\u044b\u0439 CSS, \u0438 \u0432\u0435\u0441 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432\u0435\u043b\u0438\u043a\u043e\u0432\u0430\u0442. \u041d\u043e \u043d\u043e\u043b\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 node_modules \u043e\u043a\u0443\u043f\u0430\u044e\u0442 \u044d\u0442\u043e \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438; \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 PostCSS \u044f \u043f\u0435\u0440\u0435\u0439\u0434\u0443, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c.\u0410 \u0432\u043e\u0442 HTMX \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c. \u042f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u0440\u0443\u0447\u043d\u043e\u0433\u043e fetch + polling \u043d\u0430 hx-get + hx-swap \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0431\u043e\u043b\u0435\u0435 \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0439 UI, \u0447\u0435\u043c \u0443 \u0447\u0430\u0441\u0442\u0438 React-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0438\u0434\u0435\u043b \u0434\u043e \u044d\u0442\u043e\u0433\u043e. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043d\u0435\u0442 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 JSON, \u043d\u0435\u0442 \u0434\u0438\u0444\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e DOM, \u043d\u0435\u0442 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 JS \u2014 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u0443\u0441\u043e\u043a HTML \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0443\u0437\u0435\u043b. \u041d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e.\u041e\u0434\u0438\u043d \u043c\u043e\u043d\u043e\u043b\u0438\u0442, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u0427\u0442\u043e\u0431\u044b \u043f\u044f\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u0441\u043f\u0430\u0433\u0435\u0442\u0442\u0438, \u044f \u0434\u0435\u0440\u0436\u0443\u0441\u044c \u0434\u0432\u0443\u0445 \u043f\u0440\u0430\u0432\u0438\u043b.\u041f\u0435\u0440\u0432\u043e\u0435 \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e \u0444\u0438\u0447\u0435, \u0430 \u043d\u0435 \u043f\u043e \u0441\u043b\u043e\u044e. \u041d\u0435 \u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u043f\u043a\u0438 models\/, routers\/, services\/, \u0430 \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:app\/  auth\/        {router,service,models,schemas,deps}.py  tasks\/       {router,service,models,schemas}.py  billing\/     {router,service,models,products,stars}.py  lessio\/      &#8230;  qa\/          &#8230;  pdd\/         {router,service,models,seo,seed_load}.py  telegram\/    bot.py  main.py      # \u0442\u0443\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435\u0412\u0441\u0451, \u0447\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u0439 \u0444\u0438\u0447\u0435, \u043b\u0435\u0436\u0438\u0442 \u0440\u044f\u0434\u043e\u043c. \u041d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430 app\/&lt;feature&gt;\/ \u0438 \u043f\u0430\u0440\u0430 \u0441\u0442\u0440\u043e\u043a \u0432 main.py:app.include_router(pdd_router)       # HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 \/pddapp.include_router(pdd_api_router)   # JSON-\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u043d\u0430 \/api\/pdd\u0412\u0442\u043e\u0440\u043e\u0435 \u2014 \u043e\u0431\u0449\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0430 \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f (app\/auth\/deps.py), \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430 Stars, \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0430 \u043f\u0438\u0441\u0435\u043c, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f sitemap.xml, \u0431\u043e\u0442 \u2014 \u044d\u0442\u043e \u043e\u0431\u0449\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438. \u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u0435\u043b\u0430\u043b \u041f\u0414\u0414, \u043c\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e, \u043d\u0438 \u043e\u043f\u043b\u0430\u0442\u0443, \u043d\u0438 SEO-\u043e\u0431\u0432\u044f\u0437\u043a\u0443: \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043a\u0443\u0441\u043a\u0430\u043c. \u0420\u043e\u0443\u0442\u0435\u0440\u044b \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b (\/pdd, \/qa, \/lessio), \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043a\u0443\u0441\u043e\u043a URL-\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430.\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u00ab\u0440\u043e\u0443\u0442\u0435\u0440 \u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u0435\u0440\u0432\u0438\u0441, \u0430 \u043d\u0435 \u0432 ORM \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e\u00bb \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043b\u043e\u0438 \u0447\u0438\u0441\u0442\u044b\u043c\u0438: \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0431\u0430\u0437\u043e\u0439 \u2014 \u0432 service.py, \u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0448\u0430\u0431\u043b\u043e\u043d.Telegram Mini App: \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u0440\u0430\u0431\u043b\u0438Mini App \u2014 \u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0434\u043e\u0432\u043e\u043b\u0435\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e, \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0442\u0430, \u0433\u0434\u0435 \u0433\u0440\u0430\u0431\u043b\u0435\u0439 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043a\u043e\u0434\u0430. \u0420\u0430\u0437\u0431\u0435\u0440\u0443 \u0447\u0435\u0442\u044b\u0440\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0448\u043b\u0438 \u0447\u0430\u0441\u044b.Mini App \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c, \u043a\u043e\u043b\u044c\u0446\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0442\u0430\u0431\u0430\u043c\u0438\u0413\u0440\u0430\u0431\u043b\u044f \u21161 \u2014 themeParams \u043b\u043e\u043c\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043f\u0430\u043b\u0438\u0442\u0440\u0443Telegram WebApp SDK \u043e\u0442\u0434\u0430\u0451\u0442 themeParams: \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430, \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0430\u043a\u0446\u0435\u043d\u0442\u0430 \u0438\u0437 \u0442\u0435\u043c\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0432\u0437\u044f\u0442\u044c \u0438\u0445 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u0447\u0442\u043e\u0431\u044b Mini App \u00ab\u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u00bb. \u042d\u0442\u043e \u043b\u043e\u0432\u0443\u0448\u043a\u0430.\u0415\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Telegram \u0432 \u0441\u0432\u0435\u0442\u043b\u043e\u0439 \u0442\u0435\u043c\u0435, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 bg_color: #ffffff. \u0418 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 rgba(255,255,255,0.06) \u0434\u043b\u044f shimmer-\u044d\u0444\u0444\u0435\u043a\u0442\u0430, \u0442\u043e\u043d\u043a\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b rgba(255,255,255,0.08), \u0447\u0438\u043f\u044b \u043f\u043e\u0434 \u0442\u0451\u043c\u043d\u044b\u0439 \u0444\u043e\u043d \u2014 \u043d\u0430 \u0431\u0435\u043b\u043e\u043c \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u0443\u044e \u043a\u0430\u0448\u0443. \u042f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441\u043b\u0435\u043f\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b themeParams \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u0430\u0442\u044c \u044f\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u00ab\u0442\u0451\u043c\u043d\u0430\u044f \/ \u0441\u0432\u0435\u0442\u043b\u0430\u044f \/ \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f\u00bb. \u0421\u0432\u0435\u0442\u043b\u0443\u044e \u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0441 \u043d\u0443\u043b\u044f \u043d\u0430 \u043f\u0430\u043b\u0438\u0442\u0440\u0435 slate, \u0430 \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b \u0438\u0437 \u0447\u0443\u0436\u0438\u0445 \u0446\u0432\u0435\u0442\u043e\u0432. \u0412\u044b\u0431\u043e\u0440 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 localStorage; \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044f \u0437\u043e\u0432\u0443 tg.setHeaderColor(&#8230;) \u0438 tg.setBackgroundColor(&#8230;), \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0441\u0438\u043b\u0441\u044f \u0438 chrome-\u0431\u0430\u0440 Telegram \u043f\u043e\u0432\u0435\u0440\u0445 Mini App. \u0410\u043d\u0442\u0438-\u043c\u0435\u0440\u0446\u0430\u043d\u0438\u0435 \u2014 \u0447\u0435\u0440\u0435\u0437 inline-\u0441\u043a\u0440\u0438\u043f\u0442 \u0432 &lt;head&gt; \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e paint.\u0413\u0440\u0430\u0431\u043b\u044f \u21162 \u2014 api.telegram.org \u043f\u043e IPv6 \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 = \u0441\u043c\u0435\u0440\u0442\u044c \u0431\u043e\u0442\u0430\u0411\u043e\u0442 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 VPS. \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 DNS \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 \u043e\u0442\u0434\u0430\u0451\u0442 \u0434\u043b\u044f api.telegram.org \u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 IPv4 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 httpx \u0432\u043d\u0443\u0442\u0440\u0438 python-telegram-bot \u0447\u0435\u0441\u0442\u043d\u043e \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442 \u0445\u043e\u0441\u0442, \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u0432\u0438\u0441\u0438\u0442 \u0432 connect-timeout \u2014 \u0438 \u0431\u043e\u0442 \u043c\u043e\u043b\u0447\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c.\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u044b\u0439 IPv4 \u0443 Telegram \u0435\u0441\u0442\u044c: curl &#8212;resolve api.telegram.org:443:149.154.167.220 https:\/\/&#8230; \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041f\u0440\u043e\u0441\u0442\u043e DNS \u043e\u0442\u0434\u0430\u0451\u0442 \u043d\u0435 \u0442\u043e. Sudo \u043d\u0430 \u043f\u0440\u043e\u0434\u0435 \u043d\u0435\u0442, \/etc\/hosts \u043d\u0435 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c.\u041f\u0435\u0440\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 monkey-patch \u043d\u0430 \u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440. \u0412\u0430\u0436\u043d\u0430\u044f \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c: \u043f\u0430\u0442\u0447\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0438 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432 \u0438\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438:import asyncio.base_eventsimport socketfrom typing import Any_TELEGRAM_API_IPS = (&#171;149.154.167.220&#187;,)_FORCED_HOSTS = {&#171;api.telegram.org&#187;}def _force_ipv4_resolve() -&gt; None:    # 1. socket.getaddrinfo \u2014 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432 (curl-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0438 sync-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438)    sync_orig = socket.getaddrinfo    def _v4_sync(host: Any, *args: Any, **kwargs: Any) -&gt; Any:        if host in _FORCED_HOSTS:            port = args[0] if args else kwargs.get(&#171;port&#187;, 0)            return [                (socket.AF_INET, socket.SOCK_STREAM, 6, &#171;&#187;, (ip, port))                for ip in _TELEGRAM_API_IPS            ]        return sync_orig(host, *args, **kwargs)    socket.getaddrinfo = _v4_sync    # 2. asyncio.BaseEventLoop.getaddrinfo \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432    #    (httpx \u2192 httpcore \u2192 anyio \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 event-loop.getaddrinfo, \u0430 \u041d\u0415 socket)    async_orig = asyncio.base_events.BaseEventLoop.getaddrinfo    async def _v4_async(self: Any, host: Any, port: Any = 0, *a: Any, **k: Any) -&gt; Any:        if host in _FORCED_HOSTS:            return [                (socket.AF_INET, socket.SOCK_STREAM, 6, &#171;&#187;, (ip, port))                for ip in _TELEGRAM_API_IPS            ]        return await async_orig(self, host, port, *a, **k)    asyncio.base_events.BaseEventLoop.getaddrinfo = _v4_async  # type: ignore[method-assign]\u041d\u043e \u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e: httpx \u0447\u0435\u0440\u0435\u0437 httpcore \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 resolution, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0442\u0447\u0438 \u043d\u0430 getaddrinfo \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043b. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043b\u043e\u0439 \u043d\u0438\u0436\u0435 \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0431\u044d\u043a\u0435\u043d\u0434 httpcore, \u0447\u0442\u043e\u0431\u044b \u0434\u043b\u044f api.telegram.org TCP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0448\u043b\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 IP, \u0430 SNI \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c TLS \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c:import httpxfrom httpcore._backends.auto import AutoBackendfrom telegram.request import HTTPXRequestdef _make_telegram_request() -&gt; HTTPXRequest:    class _HardcodedIPBackend(AutoBackend):        async def connect_tcp(self, host: Any, port: Any, *a: Any, **k: Any) -&gt; Any:            if host in _FORCED_HOSTS:                # \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e TCP-\u0430\u0434\u0440\u0435\u0441; SNI\/\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0432\u044b\u0448\u0435                # \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f api.telegram.org \u2192 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u043e \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e                host = _TELEGRAM_API_IPS[0]            return await super().connect_tcp(host, port, *a, **k)    transport = httpx.AsyncHTTPTransport()    transport._pool._network_backend = _HardcodedIPBackend()    return HTTPXRequest(&#8230;)  # \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u044d\u0442\u043e\u0442 transport \u0432 \u0431\u043e\u0442\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434: \u0443 httpx \u2192 httpcore \u2192 anyio \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0440\u0435\u0437\u043e\u043b\u0432\u0430, \u0438 \u043f\u0430\u0442\u0447 \u043d\u0430 socket.getaddrinfo \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435. \u0414\u043b\u044f anyio-\u043f\u0443\u0442\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e connect_tcp \u0443 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 httpcore.\u0413\u0440\u0430\u0431\u043b\u044f \u21163 \u2014 \u0443 Telegram \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u043e\u0432, \u0438 \u043d\u0435 \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430\u041a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b \u043f\u0430\u0442\u0447, \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0431\u044b\u043b\u043e \u0442\u0440\u0438 IP (\u0442\u0440\u0438 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430 Telegram). \u0411\u043e\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u0438\u0441\u0435\u043b: ss -tnp \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b SYN-SENT \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0430 SYN-ACK \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0441\u044f. \u042f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043a\u0430\u0436\u0434\u044b\u0439 IP \u0441 \u043f\u0440\u043e\u0434\u0430 curl-\u043e\u043c \u2014 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d. \u041d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0432\u0438\u0434\u0438\u043c\u043e, \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c httpx&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482709","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482709","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=482709"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482709\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}