{"id":484267,"date":"2026-06-19T10:54:33","date_gmt":"2026-06-19T10:54:33","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=484267"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=484267","title":{"rendered":"T2M Bridge, \u0447\u0430\u0441\u0442\u044c 1: \u043a\u0430\u043a\u00a0\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0MAX Bot API \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e Codex"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/177\/d89\/7a9\/177d897a95ca593a0bf9da968c5b359f.jpg\" width=\"1280\" height=\"720\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/177\/d89\/7a9\/177d897a95ca593a0bf9da968c5b359f.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/177\/d89\/7a9\/177d897a95ca593a0bf9da968c5b359f.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p><strong>\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u0437\u00a0\u0446\u0438\u043a\u043b\u0430 \u043e\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 T2M Bridge\u00a0\u2014 \u0431\u043e\u0442\u0430 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram\u2011\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0438 MAX\u2011\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438.<\/strong><\/p>\n<p>\u0412\u00a0\u0446\u0438\u043a\u043b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><strong>T2M Bridge, \u0447\u0430\u0441\u0442\u044c 1: \u043a\u0430\u043a\u00a0\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0MAX Bot API \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e Codex<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>T2M Bridge, \u0447\u0430\u0441\u0442\u044c 2: \u043a\u0430\u043a\u00a0\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0Telegram Bot API \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u00a0Codex\u00a0\u2014 \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 50\/50<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>T2M Bridge, \u0447\u0430\u0441\u0442\u044c 3: \u043a\u0430\u043a\u00a0\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u0438\u043b\u0430\u043c\u0438 \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u043e\u0442\u0430 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram \u0438 MAX<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>T2M Bridge, \u0447\u0430\u0441\u0442\u044c 4: \u043a\u0430\u043a\u00a0\u044f \u0432\u044b\u043a\u0430\u0442\u044b\u0432\u0430\u043b \u0431\u043e\u0442\u0430 \u0432\u00a0\u043f\u0440\u043e\u0434 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 Docker Compose<\/strong><\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e <code>maxlib<\/code>\u00a0\u2014 Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043e\u0442\u043e\u0432 \u043f\u043e\u0434\u00a0MAX.<\/p>\n<p>\u042f \u043f\u0438\u0441\u0430\u043b \u0435\u0451 \u043f\u043e\u00a0\u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e Codex. \u041f\u0440\u0438\u0447\u0438\u043d\u0430\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0441\u0430\u043c\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435\u00a0\u0431\u044b\u043b\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e. \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d\u00a0\u0431\u044b\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0T2M Bridge, \u0438 \u044f \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u00a0\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0441\u043b\u043e\u0439.<\/p>\n<p>\u041d\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u00a0\u0442\u0430\u043a, \u0447\u0442\u043e\u00a0\u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0451 \u0441\u0430\u043c, \u0430\u00a0\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e\u00bb. \u041d\u0430\u00a0\u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0443\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0434\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043e\u00a0\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0443\u0448\u043b\u043e \u043e\u043a\u043e\u043b\u043e \u043f\u0430\u0440\u044b \u043d\u0435\u0434\u0435\u043b\u044c.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u00a0\u0432\u00a0\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 Java \u0438 \u043d\u0435\u00a0\u0432\u00a0boilerplate\u2011\u043a\u043e\u0434\u0435. \u0421\u00a0\u044d\u0442\u0438\u043c Codex \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430 \u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u043c: \u0418\u0418 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043e\u043b\u044f, \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MAX Bot API.<\/p>\n<p>\u0412\u00a0\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u0437\u0430\u0447\u0435\u043c \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0441\u0432\u043e\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u0430\u043a\u00a0\u043e\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u043a\u0430\u043a\u00a0\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u00a0\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0418\u0418.<\/p>\n<p>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:<\/p>\n<p><a href=\"https:\/\/github.com\/tardyon-soft\/maxlib\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/tardyon\u2011soft\/maxlib<\/a><\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0441\u0432\u043e\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430<\/h3>\n<p>T2M Bridge\u00a0\u2014 \u044d\u0442\u043e \u0431\u043e\u0442 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram\u2011\u043a\u0430\u043d\u0430\u043b\u043e\u043c \u0438 MAX\u2011\u043a\u0430\u043d\u0430\u043b\u043e\u043c.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0439 \u0431\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b:<\/p>\n<ul>\n<li>\n<p>Telegram\u2011\u0431\u043e\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>MAX\u2011\u0431\u043e\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0Telegram \u0432\u00a0Java\u2011\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044b. \u0414\u043b\u044f\u00a0MAX \u043d\u0430\u00a0\u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u0440\u0442\u0430 \u043c\u043d\u0435 \u043d\u0435\u00a0\u0445\u0432\u0430\u0442\u0430\u043b\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043b\u00a0\u0431\u044b \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e HTTP\u2011\u0432\u044b\u0437\u043e\u0432\u044b \u043a\u00a0API, \u043d\u043e\u00a0\u0438 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 runtime\u2011\u0441\u043b\u043e\u0439.<\/p>\n<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 <code>sendMessage<\/code>, \u0430\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043e\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>typed client \u0434\u043b\u044f\u00a0MAX Bot API;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>dispatcher;<\/p>\n<\/li>\n<li>\n<p>router;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043b\u044c\u0442\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>middleware;<\/p>\n<\/li>\n<li>\n<p>FSM;<\/p>\n<\/li>\n<li>\n<p>\u044d\u043a\u0440\u0430\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>polling \u0438 webhook;<\/p>\n<\/li>\n<li>\n<p>\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441\u043e Spring Boot;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 HTTP\u2011\u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 T2M Bridge.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u0432\u044b\u0437\u0432\u0430\u0442\u044c API MAX;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u0435\u0434\u0438\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 update.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0\u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0433\u043b\u043e\u00a0\u0431\u044b \u0445\u0432\u0430\u0442\u0438\u0442\u044c. \u041d\u043e\u00a0\u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0447\u0430\u043b\u00a0\u0431\u044b \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f: \u0431\u0438\u0437\u043d\u0435\u0441\u2011\u043b\u043e\u0433\u0438\u043a\u0430 \u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, MAX API, \u043c\u0435\u0434\u0438\u0430, callback\u2019\u0438.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 MAX\u2011\u0447\u0430\u0441\u0442\u044c \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.<\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c <code>maxlib<\/code>.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b Codex<\/h3>\n<p>\u041d\u0430\u00a0\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n<p>\u0426\u0435\u043b\u044c\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439:\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0431\u043e\u0442\u0430 \u0438 \u043d\u0435\u00a0\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u00a0\u0440\u0443\u0447\u043d\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>Codex \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0434\u043b\u044f\u00a0\u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447:<\/p>\n<ul>\n<li>\n<p>\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c DTO;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c builder\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0440\u043a\u0430\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c starter\u2011\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u0440\u0430\u0442\u044c routing\u2011\u0441\u043b\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c README \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u044f\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0418\u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043b \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>\u041d\u043e\u00a0\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430.<\/p>\n<p>Codex \u0445\u043e\u0440\u043e\u0448\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b Java\u2011\u043a\u043e\u0434, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MAX Bot API. \u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0434\u043e\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c API \u00ab\u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438\u00bb \u0441\u00a0\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438 \u0438\u043b\u0438\u00a0\u043f\u043e\u00a0\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435.<\/p>\n<p>\u0412\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c API;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043b\u0438\u0448\u043d\u0438\u0435 enum\u2011\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u043e, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 API;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b request\/response, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c MAX.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0418\u0418 \u043c\u043e\u0436\u0435\u0442 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439: DTO, JSON mapping, client method, builder.<\/p>\n<p>\u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b\u00a0\u2014 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API, \u0442\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<h3>\u041a\u0430\u043a\u00a0\u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/h3>\n<p>\u041d\u0430\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u00a0\u0431\u044b\u043b \u0442\u0430\u043a\u0438\u043c:<\/p>\n<ol>\n<li>\n<p>\u042f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b Codex \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u0430\u0440\u043a\u0430\u0441.<\/p>\n<\/li>\n<li>\n<p>\u042f \u0441\u0432\u0435\u0440\u044f\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 MAX Bot API.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u044f\u043b \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b request\/response\u2011\u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u043a\u043e\u0434 \u043d\u0430\u00a0demo\u2011\u0431\u043e\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0443\u0436\u0435 \u043f\u0440\u0438\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u0430\u043b \u0447\u0430\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043f\u043b\u043e\u0445\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0430\u00a0\u0431\u044b\u043b\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0448\u0438\u0440\u043e\u043a\u043e\u0439.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<blockquote>\n<p>\u0421\u0434\u0435\u043b\u0430\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0MAX Bot API.<\/p>\n<\/blockquote>\n<p>\u0422\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u043c\u043f\u0442 \u043f\u043e\u0447\u0442\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a\u00a0\u0442\u043e\u043c\u0443, \u0447\u0442\u043e\u00a0\u0418\u0418 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041e\u043d \u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043d\u043e\u00a0\u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0442\u044c \u043d\u0435\u00a0\u0438\u0437\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0430\u00a0\u0438\u0437\u00a0\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u00a0\u0442\u043e\u043c, \u043a\u0430\u043a \u00ab\u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b bot API\u00bb.<\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<blockquote>\n<p>\u0412\u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f\u00a0\u044d\u0442\u0438\u0445 request\/response. \u041d\u0435\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439 \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u00a0\u0445\u0432\u0430\u0442\u0430\u0435\u0442\u2011 \u043d\u0435\u00a0\u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0439.<\/p>\n<\/blockquote>\n<p>\u0414\u0430\u0436\u0435 \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u044b\u0432\u043e\u0434: \u043f\u0440\u0438\u00a0\u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u00a0\u0432\u043d\u0435\u0448\u043d\u0438\u043c API \u0418\u0418 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u0443\u0441\u043a\u043e\u0440\u0438\u0442\u0435\u043b\u044c, \u043d\u043e\u00a0\u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b.<\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b\u00a0\u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<h3>\u0427\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u00a0\u0438\u0442\u043e\u0433\u0435<\/h3>\n<p><code>maxlib<\/code> \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u00a0Java 17\u00a0\u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:<\/p>\n<ul>\n<li>\n<p><code>max-model<\/code>\u00a0\u2014 \u043c\u043e\u0434\u0435\u043b\u0438 MAX API;<\/p>\n<\/li>\n<li>\n<p><code>max-client-core<\/code>\u00a0\u2014 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u043b\u043e\u0439 \u0438 HTTP transport;<\/p>\n<\/li>\n<li>\n<p><code>max-fsm<\/code>\u00a0\u2014 FSM storage, scenes \u0438 wizard primitives;<\/p>\n<\/li>\n<li>\n<p><code>max-dispatcher<\/code>\u00a0\u2014 dispatcher, router, filters, middleware, screens, upload contracts;<\/p>\n<\/li>\n<li>\n<p><code>max-spring-boot-starter<\/code>\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Spring Boot;<\/p>\n<\/li>\n<li>\n<p><code>max-micronaut-starter<\/code>\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Micronaut;<\/p>\n<\/li>\n<li>\n<p><code>max-quarkus-starter<\/code>\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Quarkus;<\/p>\n<\/li>\n<li>\n<p><code>max-testkit<\/code>\u00a0\u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 update\u2011\u043f\u043e\u0442\u043e\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0T2M Bridge \u043c\u043d\u0435 \u0432\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u00a0\u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d Spring Boot starter, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u0442 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430\u00a0Java \u0438 Spring.<\/p>\n<p>\u041f\u043e\u0437\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c Micronaut \u0438 Quarkus starter\u2019\u044b. \u042d\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u043e\u0439\u00a0\u0436\u0435 \u0438\u0434\u0435\u0438: runtime \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0435\u00a0\u0434\u043e\u043b\u0436\u0435\u043d\u00a0\u0431\u044b\u0442\u044c\u00a0\u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u00a0Spring Boot.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e <code>max-client-core<\/code>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d runtime\u2011\u0441\u043b\u043e\u0439 \u0441\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 update\u2019\u043e\u0432, \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u043e\u043c \u0438 middleware, \u043d\u0443\u0436\u0435\u043d <code>max-dispatcher<\/code>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430\u00a0Spring Boot, Micronaut \u0438\u043b\u0438\u00a0Quarkus, \u043f\u0440\u043e\u0449\u0435 \u0432\u0437\u044f\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 starter.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>\u0414\u043b\u044f\u00a0Spring Boot:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"ru.tardyon.botframework:max-spring-boot-starter:&lt;version&gt;\")}<\/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>\u0414\u043b\u044f\u00a0Micronaut:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"ru.tardyon.botframework:max-micronaut-starter:&lt;version&gt;\")}<\/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>\u0414\u043b\u044f\u00a0Quarkus:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"ru.tardyon.botframework:max-quarkus-starter:&lt;version&gt;\")}<\/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>\u0414\u043b\u044f\u00a0vanilla Java:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"ru.tardyon.botframework:max-client-core:&lt;version&gt;\")    implementation(\"ru.tardyon.botframework:max-dispatcher:&lt;version&gt;\")}<\/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>\u0414\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u043e\u0432:<\/p>\n<pre><code class=\"kotlin\">dependencies {    testImplementation(\"ru.tardyon.botframework:max-testkit:&lt;version&gt;\")}<\/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>\u0412\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043d\u0438\u0436\u0435 \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Spring Boot, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f\u00a0\u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<h3>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 Spring Boot \u0431\u043e\u0442 \u0447\u0435\u0440\u0435\u0437 polling<\/h3>\n<p>\u0414\u043b\u044f\u00a0polling\u2011\u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c starter \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"yaml\">max:  bot:    token: ${MAX_BOT_TOKEN}    mode: POLLING    polling:      enabled: true      limit: 100      timeout: 30s<\/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>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c <code>Router<\/code> \u043a\u0430\u043a\u00a0Spring bean:<\/p>\n<pre><code class=\"java\">import java.util.concurrent.CompletableFuture;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import ru.tardyon.botframework.dispatcher.BuiltInFilters;import ru.tardyon.botframework.dispatcher.Router;import ru.tardyon.botframework.message.Messages;@Configurationpublic class BotConfig {    @Bean    Router botRouter() {        Router router = new Router(\"main\");        router.message(BuiltInFilters.command(\"start\"), (message, ctx) -&gt; {            ctx.reply(Messages.text(\"\u041f\u0440\u0438\u0432\u0435\u0442 \u0438\u0437 Spring Boot\"));            return CompletableFuture.completedFuture(null);        });        return router;    }}<\/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>Starter \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 runtime\u2011\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<ul>\n<li>\n<p><code>MaxBotClient<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>Dispatcher<\/code>;<\/p>\n<\/li>\n<li>\n<p>facade \u0434\u043b\u044f\u00a0\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, callback\u2019\u043e\u0432 \u0438 chat actions;<\/p>\n<\/li>\n<li>\n<p>FSM storage;<\/p>\n<\/li>\n<li>\n<p>registry \u0434\u043b\u044f\u00a0screens \u0438 scenes;<\/p>\n<\/li>\n<li>\n<p>polling lifecycle.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u043d\u0435\u00a0\u043d\u0443\u0436\u043d\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0435\u0441\u044c runtime.<\/p>\n<h3>Webhook\u2011\u0440\u0435\u0436\u0438\u043c<\/h3>\n<p>\u0414\u043b\u044f\u00a0webhook \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c web\u2011\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c Spring Boot:<\/p>\n<pre><code class=\"kotlin\">dependencies {    implementation(\"org.springframework.boot:spring-boot-starter-web\")}<\/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>\u0418 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c:<\/p>\n<pre><code class=\"yaml\">max:  bot:    token: ${MAX_BOT_TOKEN}    mode: WEBHOOK    webhook:      path: \/webhook\/max      secret: ${MAX_WEBHOOK_SECRET}      max-in-flight: 64<\/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>\u0412\u00a0\u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 starter \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 HTTP endpoint \u043f\u043e\u00a0\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u00a0webhook receiver.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 polling \u043f\u0440\u043e\u0449\u0435. \u0414\u043b\u044f\u00a0production webhook \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430, TLS \u0438 reverse proxy.<\/p>\n<h3>Dispatcher \u0438 Router<\/h3>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 runtime \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u044f: <code>Dispatcher<\/code> \u0438 <code>Router<\/code>.<\/p>\n<p><code>Dispatcher<\/code> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 update, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 <code>RuntimeContext<\/code> \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u00a0router\u2019\u044b.<\/p>\n<p><code>Router<\/code> \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>update;<\/p>\n<\/li>\n<li>\n<p>message;<\/p>\n<\/li>\n<li>\n<p>callback;<\/p>\n<\/li>\n<li>\n<p>error.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u00a0\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code class=\"java\">router.message(BuiltInFilters.command(\"start\"), (message, ctx) -&gt; {    ctx.reply(Messages.text(\"\u0421\u0442\u0430\u0440\u0442\"));    return CompletableFuture.completedFuture(null);});<\/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>\u0412 <code>BuiltInFilters<\/code> \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>command(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>textEquals(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>textStartsWith(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>chatType(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>fromUser(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>hasAttachment()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>callbackDataPresent()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>callbackDataEquals(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>callbackDataStartsWith(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>state(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>stateIn(...)<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u044d\u0442\u043e\u0433\u043e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e: \u043c\u043e\u0436\u043d\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, callback\u2019\u0438 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u041d\u043e\u00a0\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u043e\u0442\u0435\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0443\u0439\u0442\u0438 \u043e\u0442\u00a0\u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 <code>router.message(...)<\/code>.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0435\u0441\u0442\u044c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 API.<\/p>\n<h3>\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433<\/h3>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c route\u2011\u043a\u043b\u0430\u0441\u0441\u044b \u0447\u0435\u0440\u0435\u0437 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">import ru.tardyon.botframework.dispatcher.RuntimeContext;import ru.tardyon.botframework.dispatcher.annotation.Command;import ru.tardyon.botframework.dispatcher.annotation.Route;import ru.tardyon.botframework.message.Messages;@Route(value = \"menu\", autoRegister = true)public final class MenuRoute {    @Command(\"start\")    public void start(RuntimeContext ctx) {        ctx.reply(Messages.text(\"\u041a\u043e\u043c\u0430\u043d\u0434\u044b: \/menu\"));    }    @Command(\"menu\")    public void menu(RuntimeContext ctx) {        ctx.reply(Messages.text(\"\u041c\u0435\u043d\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\"));    }}<\/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>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><code>@Route<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@Message<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@Text<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@Command<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@Callback<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@CallbackPrefix<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@State<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@UseFilters<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>@UseMiddleware<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0Spring Boot starter\u2019\u0430 \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0442\u0435\u043c, \u0447\u0442\u043e\u00a0route\u2011\u043a\u043b\u0430\u0441\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412\u00a0T2M Bridge \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432: \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432, \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0431\u043e\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h3>RuntimeContext<\/h3>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0441\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a,\u00a0\u2014 <code>RuntimeContext<\/code>.<\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b:<\/p>\n<ul>\n<li>\n<p><code>messaging()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>callbacks()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>actions()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>media()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>fsm()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>scenes()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>wizard()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>reply(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>answerCallback(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>chatAction(...)<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">@Command(\"ping\")public void ping(RuntimeContext ctx) {    ctx.reply(Messages.text(\"pong\"));}<\/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>\u0418\u043b\u0438\u00a0callback:<\/p>\n<pre><code class=\"java\">@Callback(\"menu:ok\")public void ok(RuntimeContext ctx) {    ctx.answerCallback(\"OK\");}<\/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>\u0417\u0430\u0434\u0430\u0447\u0430 <code>RuntimeContext<\/code>\u00a0\u2014 \u0441\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, storage, callback facade \u0438 screen runtime.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0431\u043e\u0442\u043e\u043c \u043d\u0430\u00a0\u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f.<\/p>\n<h3>FSM: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\u0414\u043b\u044f\u00a0\u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u043d\u0443\u0436\u0435\u043d FSM.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0421\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u00bb, \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b \u043a\u043e\u0434, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u043e\u00a0\u0432\u0442\u043e\u0440\u043e\u043c \u0431\u043e\u0442\u0435.<\/p>\n<p>\u042d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0430\u00a0\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432.<\/p>\n<p>\u0412 <code>maxlib<\/code> \u0434\u043b\u044f\u00a0\u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c <code>FSMContext<\/code>.<\/p>\n<p>\u0423\u00a0\u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><code>currentState()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>setState(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>clearState()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>data()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>setData(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>updateData(...)<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>clearData()<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>clear()<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">router.message(BuiltInFilters.command(\"form\"), (message, ctx) -&gt;        ctx.fsm().setState(\"demo.form.name\")                .thenAccept(ignored -&gt; ctx.reply(Messages.text(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f\"))));router.message(BuiltInFilters.state(\"demo.form.name\"), (message, ctx) -&gt;        ctx.fsm().updateData(Map.of(\"name\", message.text()))                .thenCompose(ignored -&gt; ctx.fsm().setState(\"demo.form.done\")));<\/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>\u041f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u00a0starter\u2019\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f scope <code>USER_IN_CHAT<\/code>.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c memory storage \u0438\u043b\u0438\u00a0Redis.<\/p>\n<p>Spring Boot \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Redis storage:<\/p>\n<pre><code class=\"yaml\">max:  bot:    storage:      type: REDIS      redis:        key-prefix: max:bot:fsm        ttl: 30m<\/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>\u0414\u043b\u044f\u00a0\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 memory storage \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0414\u043b\u044f\u00a0\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u044b, Redis \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0435\u0435.<\/p>\n<h3>Screens: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043e\u0442\u0430<\/h3>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b\u043c.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code>\/start\/link\/channels\/settings\/crosspost_on<\/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\u00a0\u043e\u0431\u044b\u0447\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0435\u00a0\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 <code>maxlib<\/code> \u0435\u0441\u0442\u044c screen API. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u044d\u043a\u0440\u0430\u043d \u043a\u0430\u043a\u00a0\u043c\u043e\u0434\u0435\u043b\u044c, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0438\u0437\u00a0\u0442\u0435\u043a\u0441\u0442\u0430, \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 <code>@Screen<\/code>:<\/p>\n<pre><code class=\"java\">import ru.tardyon.botframework.screen.ScreenContext;import ru.tardyon.botframework.screen.ScreenModel;import ru.tardyon.botframework.screen.Widgets;import ru.tardyon.botframework.screen.annotation.Render;import ru.tardyon.botframework.screen.annotation.Screen;@Screen(\"profile\")public final class ProfileScreen {    @Render    public ScreenModel render(ScreenContext ctx) {        String name = String.valueOf(ctx.params().getOrDefault(\"name\", \"\u0413\u043e\u0441\u0442\u044c\"));        return ScreenModel.builder()                .title(\"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\")                .widget(Widgets.text(\"\u0418\u043c\u044f: \" + name))                .showBackButton(true)                .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>\u042d\u043a\u0440\u0430\u043d \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0437\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u043b\u0438\u00a0callback\u2019\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 screen runtime \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0435\u0439, callback\u2019\u0430\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u043e\u0439.<\/p>\n<p>\u0414\u043b\u044f\u00a0T2M Bridge \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0448\u0430\u0433\u043e\u0432:<\/p>\n<ol>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 Telegram \u0438 MAX;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0430\u043b\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0430\u043d\u0430\u043b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u00a0\u043a\u0430\u043d\u0430\u043b\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e, \u043d\u043e\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c.<\/p>\n<h3>@ScreenController: controller\u2011style API \u0434\u043b\u044f\u00a0\u044d\u043a\u0440\u0430\u043d\u043e\u0432<\/h3>\n<p>\u0412\u00a0Spring Boot starter \u0435\u0441\u0442\u044c <code>@ScreenController<\/code>.<\/p>\n<p>\u041e\u043d \u043d\u0443\u0436\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432\u00a0\u043e\u0434\u043d\u043e\u043c Spring bean.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">import java.util.Map;import java.util.concurrent.CompletionStage;import ru.tardyon.botframework.screen.ScreenButton;import ru.tardyon.botframework.screen.ScreenContext;import ru.tardyon.botframework.screen.ScreenModel;import ru.tardyon.botframework.screen.Widgets;import ru.tardyon.botframework.spring.screen.annotation.OnScreenAction;import ru.tardyon.botframework.spring.screen.annotation.OnScreenText;import ru.tardyon.botframework.spring.screen.annotation.ScreenController;import ru.tardyon.botframework.spring.screen.annotation.ScreenView;@ScreenControllerpublic final class ProfileController {    @ScreenView(screen = \"profile\")    public ScreenModel profile(ScreenContext ctx) {        String name = String.valueOf(ctx.params().getOrDefault(\"name\", \"\u0413\u043e\u0441\u0442\u044c\"));        return ScreenModel.builder()                .title(\"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\")                .widget(Widgets.text(\"\u0418\u043c\u044f: \" + name))                .widget(Widgets.text(\"\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043c\u044f\"))                .widget(Widgets.buttonRow(ScreenButton.of(\"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c\", \"reset_name\")))                .showBackButton(true)                .build();    }    @OnScreenAction(screen = \"profile\", action = \"reset_name\")    public CompletionStage&lt;Void&gt; reset(ScreenContext ctx) {        return ctx.nav().replace(\"profile\", Map.of(\"name\", \"\u0413\u043e\u0441\u0442\u044c\"));    }    @OnScreenText(screen = \"profile\")    public CompletionStage&lt;Void&gt; onText(ScreenContext ctx, String text) {        String next = text == null || text.isBlank() ? \"\u0413\u043e\u0441\u0442\u044c\" : text.trim();        return ctx.nav().replace(\"profile\", Map.of(\"name\", next));    }}<\/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\u043e\u0439 \u0441\u0442\u0438\u043b\u044c \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 flow, \u0433\u0434\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a\u00a0\u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u043e\u0444\u0438\u043b\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0430\u043b\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u0438\u043d controller \u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 screen id, \u0430\u00a0navigation \u0438 handlers \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0440\u044f\u0434\u043e\u043c.<\/p>\n<h3>Widgets<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445, \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u00a0widget.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c <code>@WidgetController<\/code>.<\/p>\n<p>\u0418\u0434\u0435\u044f \u0442\u0430\u043a\u0430\u044f:<\/p>\n<ul>\n<li>\n<p>widget \u0441\u0430\u043c \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442;<\/p>\n<\/li>\n<li>\n<p>widget \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 action\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>screen \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c widget \u0447\u0435\u0440\u0435\u0437 reference.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e:<\/p>\n<pre><code class=\"java\">Widgets.ref(\"demo.counter\")<\/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\u00a0\u0441\u0430\u043c widget controller \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 render \u0438 action handlers.<\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f\u00a0\u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432: \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u0441\u043f\u0438\u0441\u043e\u043a\u00a0\u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u043e\u0431\u0449\u0438\u0439 header \u0438\u043b\u0438\u00a0footer \u044d\u043a\u0440\u0430\u043d\u0430.<\/p>\n<h3>Middleware<\/h3>\n<p>\u0412 <code>maxlib<\/code> \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0443\u0440\u043e\u0432\u043d\u044f middleware:<\/p>\n<ul>\n<li>\n<p><code>OuterMiddleware<\/code>\u00a0\u2014 \u043d\u0430\u00a0\u0443\u0440\u043e\u0432\u043d\u0435 <code>Dispatcher<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>InnerMiddleware<\/code>\u00a0\u2014 \u043d\u0430\u00a0\u0443\u0440\u043e\u0432\u043d\u0435 <code>Router<\/code> \u0438\u043b\u0438\u00a0\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e annotated handler.<\/p>\n<\/li>\n<\/ul>\n<p>Middleware \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u043e\u0433\u0430\u0449\u0430\u0442\u044c <code>RuntimeContext<\/code>.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">public final class AttemptMiddleware implements InnerMiddleware {    @Override    public CompletionStage&lt;DispatchResult&gt; invoke(RuntimeContext context, MiddlewareNext next) {        context.putEnrichment(\"attempt\", 1);        return next.proceed();    }}<\/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>\u0412\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u043e\u0442\u0435 middleware \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f\u00a0\u0441\u043a\u0432\u043e\u0437\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447:<\/p>\n<ul>\n<li>\n<p>\u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0442\u0440\u0438\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p>enrichment \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u00a0T2M Bridge \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442\u00a0\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u043f\u0440\u0430\u0432 \u043d\u0430\u00a0\u043a\u0430\u043d\u0430\u043b \u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u043e\u0439 \u0441\u043b\u043e\u0439\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c.<\/p>\n<h3>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0431\u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u00a0\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u044d\u0442\u043e\u0433\u043e \u0432 <code>maxlib<\/code> \u0435\u0441\u0442\u044c <code>max-testkit<\/code>.<\/p>\n<p>\u0415\u0433\u043e \u0437\u0430\u0434\u0430\u0447\u0430\u00a0\u2014 \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438 \u043f\u043e\u0442\u043e\u043a update\u2019\u043e\u0432 \u0431\u0435\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a\u00a0MAX API.<\/p>\n<p>\u0422\u0435\u0441\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 update \u043f\u0440\u0438\u0448\u0451\u043b;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 handler \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442 \u0431\u043e\u0442 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u00a0\u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u043e.<\/p>\n<p>Codex \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043d\u043e\u00a0\u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u00a0\u0434\u0435\u0442\u0430\u043b\u044f\u0445 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u00a0\u0442\u0435\u0441\u0442\u0430\u0445, demo\u2011\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445 API.<\/p>\n<p>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 MAX API. \u0415\u0441\u043b\u0438 \u0418\u0418 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043f\u043e\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c. \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 API \u0432\u0435\u0440\u043d\u0451\u0442 \u0438\u043b\u0438\u00a0\u043d\u0435\u00a0\u0432\u0435\u0440\u043d\u0451\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h3>Vanilla Java<\/h3>\n<p>\u0425\u043e\u0442\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f\u00a0\u043c\u0435\u043d\u044f \u2011Spring Boot, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435\u00a0\u0437\u0430\u0432\u044f\u0437\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u00a0\u043d\u0435\u0433\u043e.<\/p>\n<p>\u0412\u00a0vanilla Java \u043c\u043e\u0436\u043d\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p><code>MaxBotClient<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>Router<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>Dispatcher<\/code>;<\/p>\n<\/li>\n<li>\n<p>FSM storage;<\/p>\n<\/li>\n<li>\n<p>polling runner.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">MaxApiClientConfig config = MaxApiClientConfig.builder()        .token(System.getenv(\"MAX_BOT_TOKEN\"))        .build();MaxHttpClient transport = new OkHttpMaxHttpClient(config.baseUri(), okHttpClient);JsonCodec jsonCodec = new JacksonJsonCodec();MaxBotClient botClient = new DefaultMaxBotClient(config, transport, jsonCodec);Router router = new Router(\"main\");router.message(BuiltInFilters.command(\"start\"), (message, ctx) -&gt; {    ctx.reply(Messages.text(\"\u041f\u0440\u0438\u0432\u0435\u0442 \u0438\u0437 vanilla Java\"));    return CompletableFuture.completedFuture(null);});Dispatcher dispatcher = new Dispatcher()        .withBotClient(botClient)        .withFsmStorage(new MemoryStorage())        .includeRouter(router);<\/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\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0435\u0441\u043b\u0438 \u043d\u0435\u00a0\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0442\u0430\u0449\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438\u043b\u0438\u00a0\u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u043e\u0442\u0430 \u0432\u00a0\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<h3>\u0413\u0434\u0435 Codex \u043f\u043e\u043c\u043e\u0433<\/h3>\n<p>Codex \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043c\u043e\u0433 \u0432\u00a0\u043c\u0435\u0441\u0442\u0430\u0445, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c DTO;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c builder\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 client layer;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u0440\u0430\u0442\u044c starter\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c demo\u2011\u043f\u0440\u0438\u043c\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<blockquote>\n<p>\u0421\u0434\u0435\u043b\u0430\u0439 Spring Boot auto\u2011configuration \u0434\u043b\u044f\u00a0\u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<p>\u0418\u043b\u0438:<\/p>\n<blockquote>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438 \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f\u00a0\u044d\u0442\u043e\u0433\u043e router handler.<\/p>\n<\/blockquote>\n<p>\u0418\u043b\u0438:<\/p>\n<blockquote>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u044c README \u0434\u043b\u044f\u00a0\u043c\u043e\u0434\u0443\u043b\u044f \u043f\u043e\u00a0\u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434\u0443.<\/p>\n<\/blockquote>\n<p>\u0412\u00a0\u0442\u0430\u043a\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0418\u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<h3>\u0413\u0434\u0435 Codex \u043c\u0435\u0448\u0430\u043b<\/h3>\n<p>\u0421\u0430\u043c\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a\u00a0\u2014 \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b API.<\/p>\n<p>Codex \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434 \u0442\u0430\u043a, \u043a\u0430\u043a\u00a0\u0431\u0443\u0434\u0442\u043e \u043e\u043d \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u043c \u0434\u043e\u043b\u0436\u0435\u043d\u00a0\u0431\u044b\u0442\u044c MAX Bot API. \u041e\u043d \u0434\u043e\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u00a0\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441\u00a0\u0434\u0440\u0443\u0433\u0438\u043c\u0438 bot API \u0438\u043b\u0438\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u00a0\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0435.<\/p>\n<p>\u0412\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044f \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u00a0\u0431\u044b\u043b\u043e \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p>\u041d\u0430\u00a0\u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>JSON\u2011\u043f\u043e\u043b\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>builder\u2019\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>IDE \u043d\u0435\u00a0\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e\u00a0\u043f\u0440\u0438 \u0441\u0432\u0435\u0440\u043a\u0435 \u0441\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0438\u043b\u0438\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0432\u044b\u044f\u0441\u043d\u044f\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u00a0\u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 API.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u043f\u0430\u0441\u043d\u043e \u0432\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435.<\/p>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c \u043e\u0434\u0438\u043d \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439. \u0412\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u00a0\u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u043b\u0438\u00a0transport\u2011\u0441\u043b\u043e\u0435 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u00a0\u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u044f \u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0435\u00a0\u043d\u0430\u00a0\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u0430\u00a0\u043d\u0430\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u0442\u044c\u00a0\u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0432\u00a0API;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00a0\u043b\u0438 \u043e\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u043d\u043e \u0438\u043b\u0438\u00a0\u043d\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 \u0443\u00a0\u043d\u0435\u0433\u043e \u0442\u0438\u043f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u0435\u0442\u00a0\u043b\u0438 \u043e\u043d\u043e\u00a0\u0431\u044b\u0442\u044c <code>null<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c\u00a0\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c response;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u00a0\u0434\u043e\u0431\u0430\u0432\u0438\u043b\u00a0\u043b\u0438 \u0418\u0418\u00a0\u043b\u0438\u0448\u043d\u0438\u0439 enum;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u00a0\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b\u00a0\u043b\u0438 \u043e\u043d \u0434\u0432\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0432\u00a0\u043e\u0434\u043d\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f\u00a0\u0441\u0435\u0431\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u043e:<\/p>\n<blockquote>\n<p>\u0415\u0441\u043b\u0438 Codex \u043f\u0438\u0448\u0435\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f\u00a0\u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API, \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u043e\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u0435\u00a0\u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e, \u0430\u00a0\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e.<\/p>\n<\/blockquote>\n<h3>\u0427\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u0447\u043d\u043e<\/h3>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435: \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u00a0\u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e typed client, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c dispatcher, \u0430\u00a0\u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c starter \u043f\u043e\u0434\u00a0\u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0435: \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 routing \u0438 screen API.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e demo\u2011\u0431\u043e\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0436\u0438\u0442\u044c \u043d\u0430\u00a0\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445. \u041d\u043e\u00a0\u0434\u043b\u044f\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043e\u0442\u0430 screens \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>\u0422\u0440\u0435\u0442\u044c\u0435: Codex \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043c\u043e\u0433 \u043d\u0430\u00a0boilerplate\u2011\u043a\u043e\u0434\u0435.<\/p>\n<p>DTO, builders, starter boilerplate, \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u00a0\u2014 \u044d\u0442\u043e \u043a\u0430\u043a\u00a0\u0440\u0430\u0437 \u0442\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0418\u0418 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>\u0427\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435: demo\u2011\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u042f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0440\u0436\u0443 demo\u2011\u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043d\u043e\u00a0\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 starter\u2019\u043e\u0432.<\/p>\n<h3>\u0427\u0442\u043e\u00a0\u044f\u00a0\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u043b \u0438\u043d\u0430\u0447\u0435<\/h3>\n<p>\u0415\u0441\u043b\u0438\u00a0\u0431\u044b \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0437\u0430\u043d\u043e\u0432\u043e, \u044f\u00a0\u0431\u044b \u0436\u0451\u0441\u0442\u0447\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u00a0Codex \u043d\u0430\u00a0\u0434\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0436\u0438\u043c\u00a0\u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0418\u0418 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u044b:<\/p>\n<ul>\n<li>\n<p>starter;<\/p>\n<\/li>\n<li>\n<p>wiring;<\/p>\n<\/li>\n<li>\n<p>\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u043c\u0435\u0440\u044b;<\/p>\n<\/li>\n<li>\n<p>boilerplate.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0440\u0435\u0436\u0438\u043c\u00a0\u2014 \u043c\u043e\u0434\u0435\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API.<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u044b\u00a0\u0431\u044b\u0442\u044c \u043d\u0435\u00a0\u0434\u043e\u043b\u0436\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u044f\u00a0\u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0434\u0430\u0432\u0430\u043b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u00a0\u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c enum\u2011\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u00a0\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u00a0\u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u0437\u00a0\u0434\u0440\u0443\u0433\u0438\u0445 API;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u00a0\u2014 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c TODO, \u0430\u00a0\u043d\u0435\u00a0\u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0435\u0441\u0442\u0438 \u0447\u0435\u043a\u2011\u043b\u0438\u0441\u0442 \u0441\u0432\u0435\u0440\u043a\u0438 \u0441\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 API \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<h3>\u0413\u0434\u0435 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u00a0T2M Bridge<\/h3>\n<p>\u0412\u00a0T2M Bridge <code>maxlib<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u00a0MAX\u2011\u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0421\u00a0\u0435\u0451 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u043e\u0442:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0442\u00a0MAX;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u044d\u043a\u0440\u0430\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 callback\u2019\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u043c\u0435\u0434\u0438\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u00a0\u0441\u0432\u044f\u0437\u043a\u0435 MAX\u2011\u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u00a0Telegram\u2011\u043a\u0430\u043d\u0430\u043b\u043e\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u00a0\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043d\u0435\u00a0\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e \u0441\u0430\u043c \u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e. \u042d\u0442\u043e \u0442\u0435\u043c\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0446\u0438\u043a\u043b\u0430.<\/p>\n<p>\u0422\u0430\u043c \u0443\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u00a0\u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u00a0\u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u00a0\u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Telegram\u2011\u043a\u0430\u043d\u0430\u043b \u0438 MAX\u2011\u043a\u0430\u043d\u0430\u043b;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u00a0\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u0442\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u00a0\u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043c\u0435\u0434\u0438\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0442\u043e\u00a0\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u00a0replies, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0438 \u0431\u0438\u0437\u043d\u0435\u0441\u2011\u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0431\u043e\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0442\u043e\u0433\u0438<\/h3>\n<p><code>maxlib<\/code> \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u043a\u0430\u043a\u00a0\u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f\u00a0\u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430.<\/p>\n<p>\u042f \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430\u00a0\u043d\u0435\u0451 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u0438\u0441\u0430\u043b \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e Codex. \u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u043e \u0441\u0442\u0430\u0440\u0442, \u043d\u043e\u00a0\u043d\u0435\u00a0\u043e\u0442\u043c\u0435\u043d\u0438\u043b\u043e \u0440\u0443\u0447\u043d\u043e\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u0441\u043b\u0435 \u0418\u0418\u00a0\u0431\u044b\u043b\u0430 \u043d\u0435\u00a0\u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u043a\u043e\u0434 \u043d\u0435\u00a0\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f. \u041d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430 \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0Codex \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043b \u043f\u043e\u043b\u044f, \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u00a0\u0431\u044b\u043b\u043e \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MAX Bot API.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u044b\u0432\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u043e\u0439:<\/p>\n<blockquote>\n<p>\u0418\u0418 \u0445\u043e\u0440\u043e\u0448\u043e \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043d\u043e\u00a0\u043f\u0440\u0438\u00a0\u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u00a0\u0432\u043d\u0435\u0448\u043d\u0438\u043c API \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0438\u0441\u0442\u0438\u043d\u044b \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u0430\u00a0\u043d\u0435\u00a0\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<\/blockquote>\n<p>\u0412\u00a0\u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0432\u0438\u0434\u0435 <code>maxlib<\/code> \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u043d\u0435\u0439:<\/p>\n<ul>\n<li>\n<p>typed client \u043a\u00a0MAX API;<\/p>\n<\/li>\n<li>\n<p>dispatcher\/router runtime;<\/p>\n<\/li>\n<li>\n<p>\u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0438 middleware;<\/p>\n<\/li>\n<li>\n<p>FSM;<\/p>\n<\/li>\n<li>\n<p>screens \u0438 widgets;<\/p>\n<\/li>\n<li>\n<p>polling \u0438 webhook;<\/p>\n<\/li>\n<li>\n<p>starter\u2019\u044b \u0434\u043b\u044f\u00a0Spring Boot, Micronaut \u0438 Quarkus;<\/p>\n<\/li>\n<li>\n<p>testkit.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e <code>telegalib<\/code>\u00a0\u2014 Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0Telegram Bot API, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u043f\u0438\u0441\u0430\u043b \u0443\u0436\u0435 \u0438\u043d\u0430\u0447\u0435: \u043d\u0435\u00a0\u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u043a\u0430\u0441 \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u00bb, \u0430\u00a0\u0431\u043b\u0438\u0436\u0435 \u043a\u00a0\u0444\u043e\u0440\u043c\u0430\u0442\u0443 50\/50\u00a0\u043c\u0435\u0436\u0434\u0443 \u043c\u043d\u043e\u0439 \u0438 Codex.<\/p>\n<p>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <code>maxlib<\/code>:<\/p>\n<p><a href=\"https:\/\/github.com\/tardyon-soft\/maxlib\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/tardyon\u2011soft\/maxlib<\/a><\/p>\n<p>\u0416\u0438\u0432\u043e\u0439 MVP \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f T2M Bridge:<\/p>\n<p><a href=\"https:\/\/docs.t2m-bridge.ru\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.t2m\u2011bridge.ru<\/a><\/p>\n<p>\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 roadmap:<\/p>\n<p><a href=\"https:\/\/t.me\/telega2max\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/telega2max<\/a><\/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\/1049564\/\">https:\/\/habr.com\/ru\/articles\/1049564\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u0437\u00a0\u0446\u0438\u043a\u043b\u0430 \u043e\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 T2M Bridge\u00a0\u2014 \u0431\u043e\u0442\u0430 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram\u2011\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0438 MAX\u2011\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438.\u0412\u00a0\u0446\u0438\u043a\u043b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438:T2M Bridge, \u0447\u0430\u0441\u0442\u044c 1: \u043a\u0430\u043a\u00a0\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0MAX Bot API \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e CodexT2M Bridge, \u0447\u0430\u0441\u0442\u044c 2: \u043a\u0430\u043a\u00a0\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0Telegram Bot API \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u00a0Codex\u00a0\u2014 \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 50\/50T2M Bridge, \u0447\u0430\u0441\u0442\u044c 3: \u043a\u0430\u043a\u00a0\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u0438\u043b\u0430\u043c\u0438 \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u043e\u0442\u0430 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram \u0438 MAXT2M Bridge, \u0447\u0430\u0441\u0442\u044c 4: \u043a\u0430\u043a\u00a0\u044f \u0432\u044b\u043a\u0430\u0442\u044b\u0432\u0430\u043b \u0431\u043e\u0442\u0430 \u0432\u00a0\u043f\u0440\u043e\u0434 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 Docker Compose\u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e maxlib\u00a0\u2014 Java\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043e\u0442\u043e\u0432 \u043f\u043e\u0434\u00a0MAX.\u042f \u043f\u0438\u0441\u0430\u043b \u0435\u0451 \u043f\u043e\u00a0\u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e Codex. \u041f\u0440\u0438\u0447\u0438\u043d\u0430\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0441\u0430\u043c\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435\u00a0\u0431\u044b\u043b\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e. \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d\u00a0\u0431\u044b\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0T2M Bridge, \u0438 \u044f \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u00a0\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0441\u043b\u043e\u0439.\u041d\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u00a0\u0442\u0430\u043a, \u0447\u0442\u043e\u00a0\u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0451 \u0441\u0430\u043c, \u0430\u00a0\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0433\u043e\u0442\u043e\u0432\u043e\u00bb. \u041d\u0430\u00a0\u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0443\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0434\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043e\u00a0\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0443\u0448\u043b\u043e \u043e\u043a\u043e\u043b\u043e \u043f\u0430\u0440\u044b \u043d\u0435\u0434\u0435\u043b\u044c.\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u00a0\u0432\u00a0\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 Java \u0438 \u043d\u0435\u00a0\u0432\u00a0boilerplate\u2011\u043a\u043e\u0434\u0435. \u0421\u00a0\u044d\u0442\u0438\u043c Codex \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u00a0\u0431\u044b\u043b\u0430 \u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u043c: \u0418\u0418 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043e\u043b\u044f, \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MAX Bot API.\u0412\u00a0\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u0437\u0430\u0447\u0435\u043c \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0441\u0432\u043e\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u0430\u043a\u00a0\u043e\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u043a\u0430\u043a\u00a0\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u00a0\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0418\u0418.\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:https:\/\/github.com\/tardyon\u2011soft\/maxlib\u0417\u0430\u0447\u0435\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0441\u0432\u043e\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430T2M Bridge\u00a0\u2014 \u044d\u0442\u043e \u0431\u043e\u0442 \u0434\u043b\u044f\u00a0\u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u0435\u0436\u0434\u0443 Telegram\u2011\u043a\u0430\u043d\u0430\u043b\u043e\u043c \u0438 MAX\u2011\u043a\u0430\u043d\u0430\u043b\u043e\u043c.\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0439 \u0431\u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b:Telegram\u2011\u0431\u043e\u0442\u0430;MAX\u2011\u0431\u043e\u0442\u0430.\u0414\u043b\u044f\u00a0Telegram \u0432\u00a0Java\u2011\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044b. \u0414\u043b\u044f\u00a0MAX \u043d\u0430\u00a0\u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u0440\u0442\u0430 \u043c\u043d\u0435 \u043d\u0435\u00a0\u0445\u0432\u0430\u0442\u0430\u043b\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043b\u00a0\u0431\u044b \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e HTTP\u2011\u0432\u044b\u0437\u043e\u0432\u044b \u043a\u00a0API, \u043d\u043e\u00a0\u0438 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 runtime\u2011\u0441\u043b\u043e\u0439.\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 sendMessage, \u0430\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043e\u0442\u0430:typed client \u0434\u043b\u044f\u00a0MAX Bot API;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439;dispatcher;router;\u0444\u0438\u043b\u044c\u0442\u0440\u044b;middleware;FSM;\u044d\u043a\u0440\u0430\u043d\u044b;polling \u0438 webhook;\u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441\u043e Spring Boot;\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438.\u041c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 HTTP\u2011\u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 T2M Bridge.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\u0432\u044b\u0437\u0432\u0430\u0442\u044c API MAX;\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435;\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u0435\u0434\u0438\u0430;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 update.\u0414\u043b\u044f\u00a0\u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0433\u043b\u043e\u00a0\u0431\u044b \u0445\u0432\u0430\u0442\u0438\u0442\u044c. \u041d\u043e\u00a0\u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0447\u0430\u043b\u00a0\u0431\u044b \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f: \u0431\u0438\u0437\u043d\u0435\u0441\u2011\u043b\u043e\u0433\u0438\u043a\u0430 \u043a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, MAX API, \u043c\u0435\u0434\u0438\u0430, callback\u2019\u0438.\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 MAX\u2011\u0447\u0430\u0441\u0442\u044c \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.\u0422\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c maxlib.\u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b Codex\u041d\u0430\u00a0\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.\u0426\u0435\u043b\u044c\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439:\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0431\u043e\u0442\u0430 \u0438 \u043d\u0435\u00a0\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u00a0\u0440\u0443\u0447\u043d\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.Codex \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0434\u043b\u044f\u00a0\u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447:\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c DTO;\u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c builder\u2019\u044b;\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u0440\u043a\u0430\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430;\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b;\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c starter\u2011\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438;\u0441\u043e\u0431\u0440\u0430\u0442\u044c routing\u2011\u0441\u043b\u043e\u0439;\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b;\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c README \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e\u00a0\u043c\u043e\u0434\u0443\u043b\u044f\u043c.\u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0418\u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043b \u0432\u0440\u0435\u043c\u044f.\u041d\u043e\u00a0\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430.Codex \u0445\u043e\u0440\u043e\u0448\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b Java\u2011\u043a\u043e\u0434, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 MAX Bot API. \u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0434\u043e\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c API \u00ab\u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438\u00bb \u0441\u00a0\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438 \u0438\u043b\u0438\u00a0\u043f\u043e\u00a0\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435.\u0412\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c:\u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438;\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c API;\u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432;\u043b\u0438\u0448\u043d\u0438\u0435 enum\u2011\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;\u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u043e, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 API;\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b request\/response, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c MAX.\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.\u0418\u0418 \u043c\u043e\u0436\u0435\u0442 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439: DTO, JSON mapping, client method, builder.\u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b\u00a0\u2014 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API, \u0442\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.\u041a\u0430\u043a\u00a0\u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u041d\u0430\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u00a0\u0431\u044b\u043b \u0442\u0430\u043a\u0438\u043c:\u042f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b Codex \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443.\u041e\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u0430\u0440\u043a\u0430\u0441.\u042f \u0441\u0432\u0435\u0440\u044f\u043b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 MAX Bot API.\u0423\u0434\u0430\u043b\u044f\u043b \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b.\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b request\/response\u2011\u043c\u043e\u0434\u0435\u043b\u0438.\u041f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u043a\u043e\u0434 \u043d\u0430\u00a0demo\u2011\u0431\u043e\u0442\u0435.\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0443\u0436\u0435 \u043f\u0440\u0438\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445.\u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u0430\u043b \u0447\u0430\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0439.\u0421\u0430\u043c\u044b\u0439 \u043f\u043b\u043e\u0445\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0430\u00a0\u0431\u044b\u043b\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0448\u0438\u0440\u043e\u043a\u043e\u0439.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\u0421\u0434\u0435\u043b\u0430\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0MAX Bot API.\u0422\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u043c\u043f\u0442 \u043f\u043e\u0447\u0442\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a\u00a0\u0442\u043e\u043c\u0443, \u0447\u0442\u043e\u00a0\u0418\u0418 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041e\u043d \u0441\u0442\u0440\u043e\u0438\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043d\u043e\u00a0\u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0442\u044c \u043d\u0435\u00a0\u0438\u0437\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0430\u00a0\u0438\u0437\u00a0\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u00a0\u0442\u043e\u043c, \u043a\u0430\u043a \u00ab\u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b bot API\u00bb.\u041b\u0443\u0447\u0448\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:\u0412\u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f\u00a0\u044d\u0442\u0438\u0445 request\/response. \u041d\u0435\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439 \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432\u00a0\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u00a0\u0445\u0432\u0430\u0442\u0430\u0435\u0442\u2011 \u043d\u0435\u00a0\u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0439.\u0414\u0430\u0436\u0435 \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e.\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u044b\u0432\u043e\u0434: \u043f\u0440\u0438\u00a0\u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u00a0\u0432\u043d\u0435\u0448\u043d\u0438\u043c API \u0418\u0418 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u0443\u0441\u043a\u043e\u0440\u0438\u0442\u0435\u043b\u044c, \u043d\u043e\u00a0\u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b.\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b\u00a0\u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.\u0427\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u00a0\u0438\u0442\u043e\u0433\u0435maxlib \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u00a0Java 17\u00a0\u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:max-model\u00a0\u2014 \u043c\u043e\u0434\u0435\u043b\u0438 MAX API;max-client-core\u00a0\u2014 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u043b\u043e\u0439 \u0438 HTTP transport;max-fsm\u00a0\u2014 FSM storage, scenes \u0438 wizard primitives;max-dispatcher\u00a0\u2014 dispatcher, router, filters, middleware, screens, upload contracts;max-spring-boot-starter\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Spring Boot;max-micronaut-starter\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Micronaut;max-quarkus-starter\u00a0\u2014 auto\u2011configuration \u0434\u043b\u044f\u00a0Quarkus;max-testkit\u00a0\u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 update\u2011\u043f\u043e\u0442\u043e\u043a\u0430.\u0414\u043b\u044f\u00a0T2M Bridge \u043c\u043d\u0435 \u0432\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u00a0\u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d Spring Boot starter, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0431\u043e\u0442 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430\u00a0Java \u0438 Spring.\u041f\u043e\u0437\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c Micronaut \u0438 Quarkus starter\u2019\u044b. \u042d\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0442\u043e\u0439\u00a0\u0436\u0435 \u0438\u0434\u0435\u0438: runtime \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0435\u00a0\u0434\u043e\u043b\u0436\u0435\u043d\u00a0\u0431\u044b\u0442\u044c\u00a0\u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u00a0Spring Boot.\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e max-client-core.\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d runtime\u2011\u0441\u043b\u043e\u0439 \u0441\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 update\u2019\u043e\u0432, \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u043e\u043c \u0438 middleware, \u043d\u0443\u0436\u0435\u043d max-dispatcher.\u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430\u00a0Spring Boot, Micronaut \u0438\u043b\u0438\u00a0Quarkus, \u043f\u0440\u043e\u0449\u0435 \u0432\u0437\u044f\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 starter.\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\u0414\u043b\u044f\u00a0Spring Boot:dependencies {    implementation(&#171;ru.tardyon.botframework:max-spring-boot-starter:&lt;version&gt;&#187;)}\u0414\u043b\u044f\u00a0Micronaut:dependencies {    implementation(&#171;ru.tardyon.botframework:max-micronaut-starter:&lt;version&gt;&#187;)}\u0414\u043b\u044f\u00a0Quarkus:dependencies {    implementation(&#171;ru.tardyon.botframework:max-quarkus-starter:&lt;version&gt;&#187;)}\u0414\u043b\u044f\u00a0vanilla Java:dependencies {    implementation(&#171;ru.tardyon.botframework:max-client-core:&lt;version&gt;&#187;)    implementation(&#171;ru.tardyon.botframework:max-dispatcher:&lt;version&gt;&#187;)}\u0414\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u043e\u0432:dependencies {    testImplementation(&#171;ru.tardyon.botframework:max-testkit:&lt;version&gt;&#187;)}\u0412\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043d\u0438\u0436\u0435 \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Spring Boot, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f\u00a0\u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 Spring Boot \u0431\u043e\u0442 \u0447\u0435\u0440\u0435\u0437 polling\u0414\u043b\u044f\u00a0polling\u2011\u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c starter \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:max:  bot:    token: ${MAX_BOT_TOKEN}    mode: POLLING    polling:      enabled: true      limit: 100      timeout: 30s\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c Router \u043a\u0430\u043a\u00a0Spring bean:import java.util.concurrent.CompletableFuture;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import ru.tardyon.botframework.dispatcher.BuiltInFilters;import ru.tardyon.botframework.dispatcher.Router;import ru.tardyon.botframework.message.Messages;@Configurationpublic class BotConfig {    @Bean    Router botRouter() {        Router router = new Router(&#171;main&#187;);        router.message(BuiltInFilters.command(&#171;start&#187;), (message, ctx) -&gt; {            ctx.reply(Messages.text(&#171;\u041f\u0440\u0438\u0432\u0435\u0442 \u0438\u0437 Spring Boot&#187;));            return CompletableFuture.completedFuture(null);        });        return router;    }}Starter \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 runtime\u2011\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b:MaxBotClient;Dispatcher;facade \u0434\u043b\u044f\u00a0\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, callback\u2019\u043e\u0432 \u0438 chat actions;FSM storage;registry \u0434\u043b\u044f\u00a0screens \u0438 scenes;polling lifecycle.\u0414\u043b\u044f\u00a0\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u043d\u0435\u00a0\u043d\u0443\u0436\u043d\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0435\u0441\u044c runtime.Webhook\u2011\u0440\u0435\u0436\u0438\u043c\u0414\u043b\u044f\u00a0webhook \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c web\u2011\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c Spring Boot:dependencies {    implementation(&#171;org.springframework.boot:spring-boot-starter-web&#187;)}\u0418 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c:max:  bot:    token: ${MAX_BOT_TOKEN}    mode: WEBHOOK    webhook:      path: \/webhook\/max      secret: ${MAX_WEBHOOK_SECRET}      max-in-flight: 64\u0412\u00a0\u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 starter \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442 HTTP endpoint \u043f\u043e\u00a0\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u00a0webhook receiver.\u0414\u043b\u044f\u00a0\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 polling \u043f\u0440\u043e\u0449\u0435. \u0414\u043b\u044f\u00a0production webhook \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430, TLS \u0438 reverse proxy.Dispatcher \u0438 Router\u0412\u043d\u0443\u0442\u0440\u0438 runtime \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u044f: Dispatcher \u0438 Router.Dispatcher \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 update, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 RuntimeContext \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u00a0router\u2019\u044b.Router \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438:update;message;callback;error.\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u00a0\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:router.message(BuiltInFilters.command(&#171;start&#187;), (message, ctx) -&gt; {    ctx.reply(Messages.text(&#171;\u0421\u0442\u0430\u0440\u0442&#187;));    return CompletableFuture.completedFuture(null);});\u0412 BuiltInFilters \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b:command(&#8230;);textEquals(&#8230;);textStartsWith(&#8230;);chatType(&#8230;);fromUser(&#8230;);hasAttachment();callbackDataPresent();callbackDataEquals(&#8230;);callbackDataStartsWith(&#8230;);state(&#8230;);stateIn(&#8230;).\u0414\u043b\u044f\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u044d\u0442\u043e\u0433\u043e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e: \u043c\u043e\u0436\u043d\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, callback\u2019\u0438 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\u041d\u043e\u00a0\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u043e\u0442\u0435\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0443\u0439\u0442\u0438 \u043e\u0442\u00a0\u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 router.message(&#8230;).\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0435\u0441\u0442\u044c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 API.\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0412\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c route\u2011\u043a\u043b\u0430\u0441\u0441\u044b \u0447\u0435\u0440\u0435\u0437 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438.\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:import ru.tardyon.botframework.dispatcher.RuntimeContext;import ru.tardyon.botframework.dispatcher.annotation.Command;import&#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-484267","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/484267","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=484267"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/484267\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=484267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=484267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=484267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}