{"id":285344,"date":"2017-04-21T17:05:31","date_gmt":"2017-04-21T13:05:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=285344"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=285344","title":{"rendered":"\u0427\u0430\u0442-\u0431\u043e\u0442 \u0434\u043b\u044f \u0414\u043d\u0435\u0439 \u043a\u0430\u0440\u044c\u0435\u0440\u044b \u041d\u0413\u0423"},"content":{"rendered":"<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f \u2013 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0441\u043d\u043e\u0439 \u043c\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u043c \u0432 \u0414\u043d\u044f\u0445 \u043a\u0430\u0440\u044c\u0435\u0440\u044b \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u041d\u043e\u0432\u043e\u0441\u0438\u0431\u0438\u0440\u0441\u043a\u043e\u0433\u043e \u0433\u043e\u0441\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430, \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u043a\u0443\u0437\u043d\u0438\u0446\u044b \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u0434\u0440\u043e\u0432. \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u0434 \u043c\u044b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e\u0435. \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0430\u0442-\u0431\u043e\u0442\u0430. \u0414\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432 Telegram \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u00ab\u0410\u043a\u0430\u0434\u0435\u043c\u0438\u043a\u00bb @academic_quiz_bot. \u0415\u0433\u043e \u0436\u0435 \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0438 \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0435. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f04\/fff\/407\/f04fff407fee49829d2d40f2049c922d.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u0432\u0435\u043b\u0438 \u0441\u0435\u0431\u0435 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430, \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u0435\u043c\u0443, \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u0442\u0430.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0428\u0430\u0433 1. \u0427\u0430\u0442-\u0431\u043e\u0442 \u0438 \u0414\u043d\u0438 \u043a\u0430\u0440\u044c\u0435\u0440\u044b, \u0433\u0434\u0435 \u0441\u0432\u044f\u0437\u044c?<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0430 \u0431\u044b\u043b\u043e \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e, \u0432\u0435\u0434\u044c \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0436\u0435 \u0438 \u0441 \u0441\u0430\u043c\u0438\u043c\u0438 \u0441\u043e\u0431\u043e\u0439. 2 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u043c\u044b \u0437\u0430 \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0447\u0430\u0441\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0430 \u0433\u043b\u0430\u0437\u0430\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 <a href=\"https:\/\/habrahabr.ru\/company\/eastbanctech\/blog\/255727\/\">\u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a> \u0434\u043b\u044f \u0430\u0439\u0444\u043e\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0433\u043e\u0434\u0443 \u043e\u043a\u043e\u043b\u043e \u0438\u0445 \u0430\u043b\u044c\u043c\u0430-\u043c\u0430\u0442\u0435\u0440 \u041d\u0413\u0423 (\u0431\u043e\u043b\u0435\u0435 5000 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a, \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 <a href=\"https:\/\/itunes.apple.com\/ru\/app\/%D1%82%D0%B5%D1%80%D0%BC%D0%BE%D0%BC%D0%B5%D1%82%D1%80-%D0%BD%D0%B3%D1%83\/id983980568?mt=8\">\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f<\/a>). \u0413\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043c\u044b <a href=\"https:\/\/habrahabr.ru\/company\/eastbanctech\/blog\/281238\/\">\u0437\u0430 1,5 \u0447\u0430\u0441\u0430 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 IoT-\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a> \u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0437\u0430\u0436\u0438\u0433\u0430\u0442\u044c \u043b\u0430\u043c\u043f\u043e\u0447\u043a\u0443 \u0441\u043e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u0436\u0438\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u0438 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432, \u0432\u0435\u0434\u044c \u044d\u0442\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u0437\u0440\u044b\u0432\u043d\u043e\u0439 \u0440\u043e\u0441\u0442 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u0438. <\/p>\n<p>  <\/p>\n<p>\u0418\u0434\u0435\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0430\u0442-\u0431\u043e\u0442 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0432\u0437\u044f\u043b\u0430\u0441\u044c \u0443 \u043d\u0430\u0441 \u043d\u0435 \u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430 \u2013 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432, \u043c\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0447\u0430\u0442-\u0431\u043e\u0442 \u0432 Telegram, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u043c \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0442\u0430\u0446\u0438\u043e\u043d\u0430\u0440\u043d\u043e\u043c\u0443 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443, \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u2013 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c, \u0434\u0435\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<br \/>  \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0431\u043e\u0442 \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u044c \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/319\/a36\/ffe\/319a36ffe6c84b328f9718b11a38a33d.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<h2>\u0428\u0430\u0433 2. \u041e \u0447\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u0447\u0430\u0442\u0438\u0442\u044c\u0441\u044f?<\/h2>\n<p>  <\/p>\n<p>\u0411\u043e\u0442\u0430 \u043c\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0436\u0438\u0442\u044c \u0438 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0414\u043d\u0435\u0439 \u043a\u0430\u0440\u044c\u0435\u0440\u044b. \u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u0438\u0445 \u0440\u0430\u0437\u0434\u0443\u043c\u0438\u0439 \u0438 \u0441\u043f\u043e\u0440\u043e\u0432, \u0442\u0430\u043a\u0443\u044e \u0442\u0435\u043c\u0443 \u043d\u0430\u0448\u043b\u0438! \u0412 \u043e\u0441\u043d\u043e\u0432\u0443 \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0443\u044e \u0432 \u043d\u0430\u0448\u0435\u043c \u0433\u043e\u0440\u043e\u0434\u0435 <a href=\"http:\/\/evgenykozionov.com\/viktorina\/\">\u043e\u043d\u043b\u0430\u0439\u043d-\u0430\u043d\u043a\u0435\u0442\u0443<\/a> \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u041a\u043e\u0437\u0438\u043e\u043d\u043e\u0432\u0430 \u043d\u0430 \u0437\u043d\u0430\u043d\u0438\u0435 \u041d\u043e\u0432\u043e\u0441\u0438\u0431\u0438\u0440\u0441\u043a\u043e\u0433\u043e \u0410\u043a\u0430\u0434\u0435\u043c\u0433\u043e\u0440\u043e\u0434\u043a\u0430. \u0418 \u0437\u0430 \u043d\u0435\u0434\u0435\u043b\u044e \u0434\u043e \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432 Telegram \u043d\u0430\u0448\u0435\u0433\u043e \u0447\u0430\u0442-\u0431\u043e\u0442\u0430 \u00ab\u0410\u043a\u0430\u0434\u0435\u043c\u0438\u043a\u00bb @academic_quiz_bot. <\/p>\n<p>  <\/p>\n<p>\u00ab\u0410\u043a\u0430\u0434\u0435\u043c\u0438\u043a\u00bb \u0437\u0430\u0434\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b (\u0432\u0441\u0435\u0433\u043e 101 \u0432\u043e\u043f\u0440\u043e\u0441) \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043e \u0436\u0438\u0437\u043d\u0438 \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u0440\u0430\u0439\u043e\u043d\u0430, \u0432\u0440\u043e\u0434\u0435: \u00ab\u0427\u0442\u043e \u0432 \u0410\u043a\u0430\u0434\u0435\u043c\u0433\u043e\u0440\u043e\u0434\u043a\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 &quot;\u041f\u043e\u0433\u0430\u043d\u043a\u043e\u0439&quot;?\u00bb, \u00ab\u041a\u0430\u043a\u043e\u0439 \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 \u043f\u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442 \u043f\u043e\u0441\u0435\u0449\u0430\u043b \u0410\u043a\u0430\u0434\u0435\u043c\u0433\u043e\u0440\u043e\u0434\u043e\u043a?\u00bb, \u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u0438\u043a\u0440\u043e\u0440\u0430\u0439\u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f &quot;\u0429&quot;?\u00bb, \u00ab\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0443\u043f\u0435\u043d\u0435\u043a \u0438\u043c\u0435\u0435\u0442 \u043b\u0435\u0441\u0442\u043d\u0438\u0446\u0430, \u0432\u0435\u0434\u0443\u0449\u0430\u044f \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043b\u044f\u0436\u0430 \u0434\u043e \u043c\u043e\u0441\u0442\u0430?\u00bb, \u00ab\u041a\u0442\u043e \u0438\u0437 \u043b\u0430\u0443\u0440\u0435\u0430\u0442\u043e\u0432 \u041d\u043e\u0431\u0435\u043b\u0435\u0432\u0441\u043a\u043e\u0439 \u043f\u0440\u0435\u043c\u0438\u0438 \u0436\u0438\u043b \u0432 \u0410\u043a\u0430\u0434\u0435\u043c\u0433\u043e\u0440\u043e\u0434\u043a\u0435?\u00bb \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fed\/ad0\/fc0\/fedad0fc0d8a4d6c99eb77c5b0e45b72.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u00ab\u0410\u043a\u0430\u0434\u0435\u043c\u0438\u043a\u0430\u00bb \u043c\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0441\u0442\u0438\u043a\u0435\u0440\u043f\u0430\u043a\u043e\u043c \u0441 \u043f\u043e\u0434\u0431\u0430\u0434\u0440\u0438\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u0444\u0440\u0430\u0437\u043e\u0447\u043a\u0430\u043c\u0438 \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u0442\u0430\u043b\u0438\u0441\u043c\u0430\u043d\u0430 \u2013 ebtman\u2019\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6e1\/8e4\/da9\/6e18e4da9f8b46deadfcdd295043f26d.jpg\" alt=\"image\"\/> <\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u0442\u0438\u043a\u0435\u0440\u043f\u0430\u043a <a href=\"https:\/\/t.me\/addstickers\/EastBanc\">\u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442.<\/a> <\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043d\u0435\u0434\u0435\u043b\u044e \u0436\u0438\u0437\u043d\u0438 \u0431\u043e\u0442 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u0438 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432. \u0410 \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442. \u0412\u0441\u0435, \u043a\u0442\u043e \u0437\u043d\u0430\u0435\u0442 \u0410\u043a\u0430\u0434\u0435\u043c\u0433\u043e\u0440\u043e\u0434\u043e\u043a, \u0432\u044d\u043b\u043a\u0430\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u0443.<\/p>\n<p>  <\/p>\n<h2>\u0428\u0430\u0433. 3. \u0420\u0435\u0446\u0435\u043f\u0442 \u0447\u0430\u0442-\u0431\u043e\u0442\u0430 \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0447\u0430\u0442 \u0431\u043e\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Microsoft Bot Framework \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u043e. \u0410 \u0432\u043e\u0442 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u2013 \u0435\u0434\u0438\u043d\u0438\u0446\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0437\u0430\u043f\u0438\u043b\u0438\u043b \u0441\u0435\u0431\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u00ab\u0431\u043e\u043b\u0442\u0443\u043d\u0430\u00bb, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u0440\u0435\u0446\u0435\u043f\u0442. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/019\/1ca\/654\/0191ca654239404e87b831e09c4fcdb1.JPG\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 Visual Studio \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Bot Application Template. <\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/habrastorage.org\/files\/21f\/737\/765\/21f737765828463c99226201e3dba1cd.png\">https:\/\/habrastorage.org\/files\/21f\/737\/765\/21f737765828463c99226201e3dba1cd.png<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u00ab\u042d\u0445\u043e\u00bb \u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0435\u043c\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u043e\u0439 F5. \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/680\/7e0\/19d\/6807e019dfda446b93a15c4a4aba7d17.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0430\u0434\u0440\u0435\u0441 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/24d\/2d9\/122\/24d2d91224c54597bdf30357271e3200.png\" alt=\"image\"\/> <\/p>\n<p>  <\/p>\n<p>\u041a\u0443\u0434\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c api\/messages. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0443\u0435\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u0417\u0430\u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438\u0437 \u043e\u0431\u043b\u0430\u043a\u0430. \u041c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. <\/p>\n<p>  <\/p>\n<pre><code>public class QuestService {     private static QuestService _instance;     public static QuestService Instance =&gt; _instance ?? (_instance = new QuestService())      private static string _url =                                                                                    &quot;https:\/\/academicquizbot.blob.core.windows.net\/content\/questions.txt&quot;;     private readonly List&lt;Question&gt; _questions;      public int QuestionsCount =&gt; _questions.Count;      public QuestService()     {         var  root = DoRequest&lt;QuestionRoot&gt;(_url);         _questions = root.Questions;           for (int i = 0; i &lt; _questions.Count; i++)          {             _questions[i].Index = i;          }     }      private T DoRequest&lt;T&gt;(string requestStr) where T : class     {         var req = WebRequest.Create(new Uri(requestStr));         req.Method = &quot;GET&quot;;         var response = req.GetResponse();         var stream = response.GetResponseStream();         if (stream == null)         {             return null;         }          using (var rstream = new StreamReader(stream))         {             var stringResult = rstream.ReadToEnd();             var result = JsonConvert.DeserializeObject&lt;T&gt;(stringResult);             return result;         }     }      public Question GetQuestion(List&lt;int&gt; exceptIndexes)     {         var questions = _questions.Select(q =&gt; q)                  .Where(q =&gt; !exceptIndexes.Contains(q.Index)).ToList();         if (questions.Count == 0)         {             return null;         }         Random rand = new Random();         return questions[rand.Next(questions.Count)];     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0432 Visual Studio \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c QuizDialog. \u0418 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432 \u043d\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IDialog.  <\/p>\n<pre><code>[Serializable] public class QuizDialog : IDialog&lt;string&gt; {     async Task IDialog&lt;string&gt;.StartAsync(IDialogContext context)     {         context.Wait&lt;string&gt;(MessageReceived);     }      private async Task MessageReceived(IDialogContext context, IAwaitable&lt;string&gt; message)     {        await ShowQuestion(context);     }      private async Task ShowQuestion(IDialogContext context)     {     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e ShowQuestion.<br \/>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<p>  <\/p>\n<pre><code>var history = DataProviderService.Instance.GetAnswerStatistic(context.Activity.From.Id); <\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441<\/p>\n<p>  <\/p>\n<pre><code>var exceptIndexes = history.Select(h =&gt; h.Index).ToList(); _question = QuestService.Instance.GetQuestion(exceptIndexes);  if (_question == null) {     context.Done(&quot;&quot;);     return; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0435\u0442, \u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u0432\u0438\u0437 \u043f\u0440\u043e\u0439\u0434\u0435\u043d \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0434\u0438\u0430\u043b\u043e\u0433.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.<\/p>\n<p>  <\/p>\n<pre><code>StringBuilder questionText = new StringBuilder(); questionText.AppendLine(BoldString($&quot;\u0412\u043e\u043f\u0440\u043e\u0441 \u2116{history.Count + 1}:&quot;)); questionText.AppendLine(_question.Text); questionText.AppendLine(_question.ImageUrl);  var reply = context.MakeMessage(); reply.Text = questionText.ToString(); reply.TextFormat = &quot;xml&quot;;  await context.PostAsync(reply);<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 url (\u0445\u043e\u0442\u044f \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u0432 telegram \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a), \u0430 \u0447\u0435\u0440\u0435\u0437 Attachment.<\/p>\n<p>  <\/p>\n<pre><code>if (!string.IsNullOrWhiteSpace(_question.ImageUrl)) {     reply.Attachments.Add(new Attachment(&quot;image\/jpg&quot;, _question.ImageUrl)); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 BoldString:<\/p>\n<p>  <\/p>\n<pre><code>private string BoldString(string text) {     if (string.IsNullOrEmpty(text))     {        return text;     }     return $&quot;&lt;b&gt;{text}&lt;\/b&gt;&quot;; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043a\u0441\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u0432 \u00abxml\u00bb \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u043c \u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0436\u0438\u0440\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c. \u0422\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b, \u0442\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u0432\u0435\u0442\u043e\u0432. \u0411\u0443\u0434\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0431\u044b\u0432\u0430\u044e\u0442 \u043e\u0442\u0432\u0435\u0442\u044b \u0441 \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c. \u0422\u0430\u043a\u0438\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438 \u0438 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043f\u043e\u0441\u043b\u0435. \u0410 \u0435\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 (\u0434\u043e 30 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432), \u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0445 \u0441\u0440\u0430\u0437\u0443 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043d\u043e\u043f\u043e\u0447\u0435\u043a.<\/p>\n<p>  <\/p>\n<pre><code>bool isLongAnswer = _question.Answers.Any(a =&gt; a.Length &gt; LongTextLength);  var answers = _question.Answers; if (isLongAnswer) {      var answersReply = context.MakeMessage();      StringBuilder text = new StringBuilder();      answers = new List&lt;string&gt;();       for (int i = 0; i &lt; _question.Answers.Count; i++)      {          text.AppendLine($&quot;{i+1}) {_question.Answers[i]}&quot;);          answers.Add($&quot;{i + 1}&quot;);      }      answersReply.Text = text.ToString();      answersReply.TextFormat = &quot;xml&quot;;      await context.PostAsync(answersReply); }  ResumeAfter&lt;string&gt; answerRecived = AnswerReceived; if (isLongAnswer) {     answerRecived = LongAnswerReceived; }  PromptDialog.Choice(context, answerRecived,       new PromptOptions&lt;string&gt;(           prompt: &quot;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. \\n \/exit - \u0434\u043b\u044f \u043e\u0442\u043c\u0435\u043d\u044b&quot;,           retry: null,           tooManyAttempts: &quot;\u041d\u0435\u0432\u0435\u0440\u043d\u043e&quot;,           options: answers,           attempts: 0,           promptStyler: new PromptStyler(),           descriptions: answers));<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0444\u0443\u043d\u043a\u0446\u0438\u044f PromptDialog.Choice \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0430\u043c\u0438.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  <\/p>\n<pre><code>private async Task AnswerReceived(IDialogContext context, IAwaitable&lt;string&gt; message) {     bool isCorrect = false;     try     {         var answer = await message;         isCorrect = answer == _question.CorrectAnswer;     }     catch     {         \/\/ ignored     }     await ShowResult(context, isCorrect); }  private async Task LongAnswerReceived(IDialogContext context, IAwaitable&lt;string&gt; message) {     bool isCorrect = false;     try     {         var answer = await message;         var answerNumber = int.Parse(answer) - 1;         isCorrect = _question.Answers[answerNumber] == _question.CorrectAnswer;     }     catch     {         \/\/ ignored     }     await ShowResult(context, isCorrect); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0435\u0433\u043e \u043e\u0442\u0432\u0435\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043c\u044b \u0437\u043b\u043e\u0434\u0435\u0438.<br \/>  \u0414\u0430\u043b\u0435\u0435, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443. \u0418 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u0432 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u043e\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u00abtelegram\u00bb \u043f\u043e\u0434\u0431\u043e\u0434\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u0441\u0442\u0438\u043a\u0435\u0440\u043e\u043c.<\/p>\n<p>  <\/p>\n<pre><code>private async Task ShowResult(IDialogContext context, bool isCorrect) {     string isCorrectStr;     Random rand = new Random();     string sticker = &quot;&quot;;     if (isCorrect)     {         var index = rand.Next(Consts.CorrectAnswers.Length);         isCorrectStr = Consts.CorrectAnswers[index];         var stickerIndex = rand.Next(Consts.GoodStickers.Length);         sticker = Consts.GoodStickers[stickerIndex];     }     else     {         var index = rand.Next(Consts.BadAnswers.Length);         isCorrectStr = Consts.BadAnswers[index];         var stickerIndex = rand.Next(Consts.BadStickers.Length);         sticker = Consts.BadStickers[stickerIndex];     }     bool isTelegram = context.Activity.ChannelId == &quot;telegram&quot;;     if (isTelegram &amp;&amp; rand.Next(100) &gt; 30)     {         var bot = new TelegramBotClient(Consts.Telegram.Token);         await bot.SendStickerAsync(context.Activity.From.Id, sticker);     }      var reply = context.MakeMessage();     reply.Text = BoldString($&quot;{isCorrectStr}&quot;);     reply.TextFormat = &quot;xml&quot;;     await context.PostAsync(reply);      var answer =  new AnswerStatistic { Index = _question.Index, IsCorrect = isCorrect };     DataProviderService.Instance.AddAnswerStatistics(context.Activity.From.Id, answer);     await ShowAnswerDescribe(context);     await ShowStatistic(context);     await ShowQuestion(context); }  private async Task ShowAnswerDescribe(IDialogContext context) {     var reply = context.MakeMessage();     reply.Text = _question.DescribeAnswer + _question.DescribeAnswerImageUrl;     await context.PostAsync(reply); }  private async Task ShowStatistic(IDialogContext context) {     var user = DataProviderService.Instance.GetUser(context.Activity.From.Id);     var history = DataProviderService.Instance.GetAnswerStatistic(context.Activity.From.Id);      var reply = context.MakeMessage();     int correctCount = history.Count(h =&gt; h.IsCorrect);     int questionsCount = QuestService.Instance.QuestionsCount;     string text = $&quot;{history.Count}\/{questionsCount} \u0418\u0437 \u043d\u0438\u0445 \u0432\u0435\u0440\u043d\u043e: {correctCount}&quot;;     reply.Text = text;     await context.PostAsync(reply); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 MessagesController \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u0434\u0438\u0430\u043b\u043e\u0433. <\/p>\n<p>  <\/p>\n<pre><code>public async Task&lt;HttpResponseMessage&gt; Post([FromBody]Activity activity) {     if (activity.Type == ActivityTypes.Message)     {         await Conversation.SendAsync(activity, () =&gt; new QuizDialog());     }     else     {         HandleSystemMessage(activity);     }     var response = Request.CreateResponse(HttpStatusCode.OK);     return response; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u0442\u0430. <a href=\"https:\/\/habrahabr.ru\/post\/307530\/\">\u0412\u043e\u0442 \u0442\u0443\u0442<\/a> \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043e. <\/p>\n<p>  <\/p>\n<p>\u0410 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043b\u0435\u0436\u0438\u0442<a href=\"https:\/\/github.com\/eastbanctechru\/academic-quiz-bot\"> \u0432\u043e\u0442 \u0442\u0443\u0442.<\/a> <\/p>\n<p>  <\/p>\n<h2>\u0428\u0430\u0433 4. \u041f\u043e\u0434\u0432\u043e\u0434\u0438\u043c \u0438\u0442\u043e\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0439 \u0441\u0442\u0443\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u043e\u0439 \u0432\u0435\u0441\u043d\u043e\u0439 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438 \u043c\u043e\u043b\u043e\u0434\u0435\u0436\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432 \u0438 \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0440\u0435\u043a\u043e\u0440\u0434\u043d\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0441 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0435. \u0421\u043d\u043e\u0432\u0430 \u043f\u043e\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0441 \u0444\u0430\u043d\u0430\u0442\u0430\u043c\u0438 \uf04a \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0435\u0431\u044f\u0442\u0430, \u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u043f\u0430\u0440\u0435\u043d\u044c \u0438 \u0434\u0435\u0432\u0443\u0448\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0434\u044f\u0442 \u043a \u043d\u0430\u043c \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u044b \u0443\u0436\u0435 \u0442\u0440\u0435\u0442\u0438\u0439 \u0433\u043e\u0434 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u043e\u0440\u043e\u0441\u043b\u0438, \u0434\u043e 4 \u043a\u0443\u0440\u0441\u0430. \u0413\u043e\u0432\u043e\u0440\u044f\u0442, \u043d\u0430\u043f\u0438\u0448\u0443\u0442 \u0434\u0438\u043f\u043b\u043e\u043c \u0438 \u0441\u0440\u0430\u0437\u0443 \u043a \u043d\u0430\u043c (\u043c\u044b \u0440\u0430\u043d\u044c\u0448\u0435 4-\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0431\u0435\u0440\u0435\u043c).<\/p>\n<p>  <\/p>\n<p>\u0410 \u0435\u0449\u0435, \u0441\u0430\u043c\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u043e\u0442 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043c\u043e\u043b\u043e\u0434\u0435\u0436\u044c\u044e \u0438 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432! \u041d\u0443 \u0438 \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u0443 \u043d\u0430\u0448\u0443 \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u0438\u043c \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0410\u043a\u0430\u0434\u0435\u043c\u043e\u043c \u2014 @academic_quiz_bot. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f1f\/70e\/c1c\/f1f70ec1c14248b4a33336ff3dd87a3c.png\" alt=\"image\"\/><\/p>\n<\/p>\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\/327094\/\"> https:\/\/habrahabr.ru\/post\/327094\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f \u2013 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0441\u043d\u043e\u0439 \u043c\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u043c \u0432 \u0414\u043d\u044f\u0445 \u043a\u0430\u0440\u044c\u0435\u0440\u044b \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u041d\u043e\u0432\u043e\u0441\u0438\u0431\u0438\u0440\u0441\u043a\u043e\u0433\u043e \u0433\u043e\u0441\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430, \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u043a\u0443\u0437\u043d\u0438\u0446\u044b \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u0434\u0440\u043e\u0432. \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u0434 \u043c\u044b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e\u0435. \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0430\u0442-\u0431\u043e\u0442\u0430. \u0414\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432 Telegram \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u00ab\u0410\u043a\u0430\u0434\u0435\u043c\u0438\u043a\u00bb @academic_quiz_bot. \u0415\u0433\u043e \u0436\u0435 \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0438 \u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440-\u043a\u043b\u0430\u0441\u0441\u0435. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f04\/fff\/407\/f04fff407fee49829d2d40f2049c922d.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u0432\u0435\u043b\u0438 \u0441\u0435\u0431\u0435 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430, \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u0435\u043c\u0443, \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u0442\u0430.<\/p>\n<p>  <\/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-285344","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285344","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=285344"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285344\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}