{"id":278763,"date":"2016-04-21T13:45:11","date_gmt":"2016-04-21T09:45:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=278763"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=278763","title":{"rendered":"\u041a\u0430\u043a \u044f \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b Microsoft Project Oxford + Telegram Bot API"},"content":{"rendered":"<p>       \u0414\u0443\u043c\u0430\u044e, \u043a\u0430\u043a \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u0430\u043a Microsoft Project Oxford \u0438 Telegram API.<\/p>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Microsoft Project Oxford \u2014 \u043d\u0430\u0431\u043e\u0440 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 REST API, \u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0434\u0430\u044e\u0449\u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0432\u0441\u044e \u043c\u043e\u0449\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 REST API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043b\u044e\u0431\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0438\u0445 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 Microsoft. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u2014 <a href=\"https:\/\/www.microsoft.com\/cognitive-services\/\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/habrahabr.ru\/company\/microsoft\/blog\/263635\/\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  Telegram Bot API \u2014 (<s>\u0434\u0443\u043c\u0430\u044e \u0438 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u043d\u0430\u044e\u0442<\/s>) \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0438\u0434\u0435\u0442 <a href=\"https:\/\/core.telegram.org\/bots\/api\">\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u2014 <s>\u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435<\/s> \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u0438 \u043f\u043e\u043b \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043d\u0430 \u0444\u043e\u0442\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e Face API \u0438 \u043a\u043b\u044e\u0447 API, \u0432\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/www.microsoft.com\/cognitive-services\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 <\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c (\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u043e\u0442\u0430, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0442.\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u043a\u0443\u0447\u0430). \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0431\u043e\u0442\u0430, webhooks \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u043b\u044e\u0447 API, \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e.<\/p>\n<p>  \u041f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0448\u0438\u043b \u043d\u0430 PHP. \u041f\u043e\u0447\u0435\u043c\u0443? <s>\u0431\u0435\u0441 \u043f\u043e\u043f\u0443\u0442\u0430\u043b<\/s><br \/>  <a name=\"habracut\"><\/a><br \/>  1) \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"php\">require_once '\/home\/edalqrmq\/php\/HTTP\/Request.php'; define('BOT_TOKEN', 'Token'); define('API_URL', 'https:\/\/api.telegram.org\/bot'.BOT_TOKEN.'\/');  define('FILE_URL', 'https:\/\/api.telegram.org\/file\/bot'.BOT_TOKEN.'\/');\/\/\u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0444\u043e\u0442\u043e $content = file_get_contents(&quot;php:\/\/input&quot;); $update = json_decode($content, true); $chatID = $update[&quot;message&quot;][&quot;chat&quot;][&quot;id&quot;]; <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 JSON:<\/p>\n<p>  <code>{ <br \/>   &quot;update_id&quot;:3405704853232,<br \/>   _&quot;message&quot;:{ <br \/>   &quot;message_id&quot;:238,<br \/>   &quot;from&quot;:{ <br \/>   &quot;id&quot;:138183417332,<br \/>   &quot;first_name&quot;:&quot;Kirill&quot;,<br \/>   &quot;last_name&quot;:&quot;Dudka&quot;<br \/>   },<br \/>   &quot;chat&quot;:{ <br \/>   &quot;id&quot;:1381834173,<br \/>   &quot;first_name&quot;:&quot;Kirill&quot;,<br \/>   &quot;last_name&quot;:&quot;Dudka&quot;,<br \/>   &quot;type&quot;:&quot;private&quot;<br \/>   },<br \/>   &quot;date&quot;:1461168940323,<br \/>   &quot;photo&quot;:[ <br \/>   { <br \/>   &quot;file_id&quot;:&quot;AgADAgADw6gxG_mCPAjHE7knq2P_UUJfLyLw4AAgI&quot;,<br \/>   &quot;file_size&quot;:1211,<br \/>   &quot;width&quot;:90,<br \/>   &quot;height&quot;:67<br \/>   },<br \/>   { <br \/>   &quot;file_id&quot;:&quot;AgADAgADw6gxG_mCPAjHE7knDjERzAUtSA0ABGwI&quot;,<br \/>   &quot;file_size&quot;:16846,<br \/>   &quot;width&quot;:320,<br \/>   &quot;height&quot;:240<br \/>   },<br \/>   { <br \/>   &quot;file_id&quot;:&quot;AgADAgADw6gxG_mCPAjHE7knBB_ZFZmQI&quot;,<br \/>   &quot;file_size&quot;:55547,<br \/>   &quot;width&quot;:800,<br \/>   &quot;height&quot;:600<br \/>   }<br \/>   ]<br \/>   }<br \/>  }<br \/>  <\/code><br \/>  2) \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0444\u043e\u0442\u043e \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">if($update[&quot;message&quot;][&quot;photo&quot;]){ $photoId = $update[&quot;message&quot;][&quot;photo&quot;][&quot;2&quot;][&quot;file_id&quot;]; $url_json = file_get_contents(API_URL.&quot;getFile?file_id=&quot;.$photoId); $massURL = json_decode($url_json, true); $photoURL = FILE_URL.$massURL[&quot;result&quot;][&quot;file_path&quot;]; } <\/code><\/pre>\n<p>  3) \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0430\u043d\u0430\u043b\u0438\u0437, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/dev.projectoxford.ai\/docs\/services\/563879b61984550e40cbbe8d\/operations\/563879b61984550f30395236\">\u0442\u0443\u0442<\/a>:<\/p>\n<pre><code class=\"php\">$req = &new HTTP_Request('https:\/\/api.projectoxford.ai\/face\/v1.0\/detect'); $req-&gt;setMethod(HTTP_REQUEST_METHOD_POST);  $req-&gt;addHeader('Content-Type','application\/json'); $req-&gt;addHeader('Ocp-Apim-Subscription-Key','key');  $req-&gt;addQueryString('returnFaceId', 'true'); $req-&gt;addQueryString('returnFaceLandmarks', 'false'); $req-&gt;addQueryString('returnFaceAttributes', 'age,gender,smile');\/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0438\u043c \u0443\u0437\u043d\u0430\u0442\u044c   $req-&gt;setBody('{&quot;url&quot;:&quot;'.$photoURL.'&quot;}'); <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435:<\/p>\n<p>  <code>Pragma: no-cache<br \/>  Cache-Control: no-cache<br \/>  Date: Wed, 20 Apr 2016 18:31:59 GMT<br \/>  X-AspNet-Version: 4.0.30319<br \/>  X-Powered-By: ASP.NET<br \/>  Content-Length: 143<br \/>  Content-Type: application\/json; charset=utf-8<br \/>  Expires: -1<\/p>\n<p>  [<br \/>   {<br \/>   &quot;faceId&quot;: &quot;a194a7b3-7e86-46fc-9b73-166e09127546581b&quot;,<br \/>   &quot;faceRectangle&quot;: {<br \/>   &quot;top&quot;: 80,<br \/>   &quot;left&quot;: 24,<br \/>   &quot;width&quot;: 162,<br \/>   &quot;height&quot;: 162<br \/>   },<br \/>   &quot;faceAttributes&quot;: {<br \/>   &quot;age&quot;: 23.3<br \/>   }<br \/>   }<br \/>  ]<br \/>  <\/code><br \/>  4) \u0414\u0430\u043b\u044c\u0448\u0435 \u0434\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e:<\/p>\n<pre><code class=\"php\">try {     $req-&gt;sendRequest(); \t$face_json = $req-&gt;getResponseBody(); \t$massFace = json_decode($face_json, true); \t$age = $massFace[&quot;0&quot;][&quot;faceAttributes&quot;][&quot;age&quot;]; \t$gender_En = $massFace[&quot;0&quot;][&quot;faceAttributes&quot;][&quot;gender&quot;]; \tif(!$massFace[&quot;0&quot;][&quot;faceAttributes&quot;]){ \t$sendto = API_URL.&quot;sendmessage?chat_id=&quot;.$chatID.&quot;&text= \u041c\u0438\u043b\u043e, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a&quot;; \t} \telse{ \tif($gender_En==&quot;male&quot;){ \t$gender = &quot;\u041c\u0443\u0436\u0441\u043a\u043e\u0439&quot;; \t} \telse{ \tif($gender_En==&quot;female&quot;){ \t$gender = &quot;\u0416\u0435\u043d\u0441\u043a\u0438\u0439&quot;; \t} \t} \t$sendto = API_URL.&quot;sendmessage?chat_id=&quot;.$chatID.&quot;&text= \u041f\u043e\u043b: &quot;.$gender.&quot; \u0412\u043e\u0437\u0440\u0430\u0441\u0442: &quot;.$age; \t} } catch (HttpException $ex) {     echo $ex; } } else { \t$sendto = API_URL.&quot;sendmessage?chat_id=&quot;.$chatID.&quot;&text=\u041e\u0442\u043f\u0440\u0430\u0432\u044c \u043c\u043d\u0435 \u0444\u043e\u0442\u043e&quot;; }  file_get_contents($sendto); <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/images.vfl.ru\/ii\/1461179979\/f3fdb125\/12379506.png\" alt=\"image\"\/><\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e \u0443\u0448\u0435\u043b \u0447\u0430\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0444\u0435. \u0411\u043e\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u043c \u043b\u0438\u0446\u0435, \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0434 (<s>\u043f\u043e\u043a\u0430 \u0447\u0442\u043e<\/s>), Microsoft Project Oxford \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 API, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e.<\/p>\n<p>  \u0414\u0430 \u043f\u0440\u0435\u0431\u0443\u0434\u0443\u0442 \u0441 \u0432\u0430\u043c\u0438 \u0432\u0430\u0448\u0438 \u043d\u0435\u0439\u0440\u043e\u043d\u044b!       <\/p>\n<div class=\"clear\"><\/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:\/\/habrahabr.ru\/post\/282125\/\"> https:\/\/habrahabr.ru\/post\/282125\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0414\u0443\u043c\u0430\u044e, \u043a\u0430\u043a \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u0430\u043a Microsoft Project Oxford \u0438 Telegram API.<\/p>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Microsoft Project Oxford \u2014 \u043d\u0430\u0431\u043e\u0440 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 REST API, \u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0434\u0430\u044e\u0449\u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0432\u0441\u044e \u043c\u043e\u0449\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0441\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 REST API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043b\u044e\u0431\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0438\u0445 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 Microsoft. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u2014 <a href=\"https:\/\/www.microsoft.com\/cognitive-services\/\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/habrahabr.ru\/company\/microsoft\/blog\/263635\/\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  Telegram Bot API \u2014 (<s>\u0434\u0443\u043c\u0430\u044e \u0438 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u043d\u0430\u044e\u0442<\/s>) \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0438\u0434\u0435\u0442 <a href=\"https:\/\/core.telegram.org\/bots\/api\">\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u2014 <s>\u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435<\/s> \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u0438 \u043f\u043e\u043b \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043d\u0430 \u0444\u043e\u0442\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e Face API \u0438 \u043a\u043b\u044e\u0447 API, \u0432\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/www.microsoft.com\/cognitive-services\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 <\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c (\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u043e\u0442\u0430, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0442.\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u043a\u0443\u0447\u0430). \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0431\u043e\u0442\u0430, webhooks \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u043b\u044e\u0447 API, \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e.<\/p>\n<p>  \u041f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0448\u0438\u043b \u043d\u0430 PHP. \u041f\u043e\u0447\u0435\u043c\u0443? <s>\u0431\u0435\u0441 \u043f\u043e\u043f\u0443\u0442\u0430\u043b<\/s>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-278763","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278763","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=278763"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278763\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}