{"id":430211,"date":"2024-08-25T21:00:54","date_gmt":"2024-08-25T21:00:54","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=430211"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=430211","title":{"rendered":"<span>\u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u043c\u043f\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u0431\u043e\u0442\u0430<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435 \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0443 \u0448\u0438\u0440\u043e\u043a\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u043c\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u0431\u043e\u0442 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u043d\u043e \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 &#8212; \u0442\u0440\u0435\u043d\u0430\u0436\u0435\u0440 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u043e\u0442\u0435\u0440\u0430\u043f\u0438\u0438 \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0435\u0430\u043a\u0446\u0438\u0435\u0439 \u0432 \u0432\u0438\u0434\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u044e\u043a\u043e\u0437\u044b. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0432 \u0431\u043e\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e \u043c\u0435\u043d\u044e, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7a2\/236\/620\/7a2236620a1b15dc2690370b36af7621.jpg\" alt=\"\u041c\u0435\u043d\u044e\" title=\"\u041c\u0435\u043d\u044e\" width=\"559\" height=\"201\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7a2\/236\/620\/7a2236620a1b15dc2690370b36af7621.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041c\u0435\u043d\u044e<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432. \u0413\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0438\u0434\u0435\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0447\u0430\u044f, \u043d\u043e \u043e\u043d\u0430 \u043e\u0442\u0434\u0430\u043b\u044f\u0435\u0442 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0412\u0435\u0434\u044c \u0432 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u044e\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430: \u0432\u043e\u0437\u0440\u0430\u0441\u0442, \u0432\u0435\u0441, \u0441\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043e\u0437\u0430 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430, \u0423\u041a (\u0443\u0433\u043b\u0435\u0432\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442), \u0424\u0427\u0418 (\u0444\u0430\u043a\u0442\u043e\u0440 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0443), \u0411\u041f (\u0431\u0430\u0437\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\/ \u0431\u0430\u0437\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c). \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c\u0438 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043d\u0430\u0443\u0447\u0438\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0431\u043e\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u00ab\u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c\u0438\u00bb \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0434 \u043c\u043e\u0434\u0443\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430.<\/p>\n<pre><code class=\"python\"> if call.data == \"btn_new\"  and chet == 0: # \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u044f inline \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432          users[call.from_user.id]['uk_et'] = 0         users[call.from_user.id]['phi_et'] = 0         users[call.from_user.id]['bp_et'] = 0         users[call.from_user.id]['uk'] = 0         users[call.from_user.id]['phi'] = 0         users[call.from_user.id]['bp'] = 0         users[call.from_user.id]['mode'] = 0         users[call.from_user.id]['chas'] = 0         users[call.from_user.id]['summ_gluk'] = 5.5         users[call.from_user.id]['N_gluk'] = 1         users[call.from_user.id]['gluk_tek'] = 5.5         users[call.from_user.id]['kol_xe'] = 0         users[call.from_user.id]['about'] = \" \"         users[call.from_user.id]['insulin'] = 0  # \u0421\u0431\u0440\u043e\u0441 \u0440\u0435\u0436\u0438\u043c\u0430          fin_stroka = []         fin_stroka.append(\"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430:\")         temp_vozr = random.randint(1, 69)         fin_stroka.append(\"1.\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 [\u043b\u0435\u0442]: \" + str(temp_vozr))         if temp_vozr == 1:             temp_ves = 10 + random.randint(0, 2)         elif temp_vozr == 2:             temp_ves = 11 + random.randint(0, 3)         elif temp_vozr == 3:             temp_ves = 13 + random.randint(0, 2)         elif temp_vozr == 4:             temp_ves = 13 + random.randint(0, 5)         elif temp_vozr == 5:             temp_ves = 15 + random.randint(0, 7)         elif temp_vozr == 6:             temp_ves = 18 + random.randint(0, 4)         elif temp_vozr == 7:             temp_ves = 20 + random.randint(0, 8)         elif temp_vozr == 8:             temp_ves = 22 + random.randint(0, 9)         elif temp_vozr == 9:             temp_ves = 25 + random.randint(0, 10)         elif temp_vozr == 10:             temp_ves = 28 + random.randint(0, 10)         elif temp_vozr == 11:             temp_ves = 30 + random.randint(0, 11)         elif temp_vozr == 12:             temp_ves = 34 + random.randint(0, 7)         elif temp_vozr == 13:             temp_ves = 38 + random.randint(0, 15)         elif temp_vozr == 14:             temp_ves = 44 + random.randint(0, 13)         elif temp_vozr == 15:             temp_ves = 46 + random.randint(0, 23)         elif temp_vozr == 16:             temp_ves = 48 + random.randint(0, 27)         elif temp_vozr == 17:             temp_ves = 49 + random.randint(0, 30)         else:             temp_ves = 51 + random.randint(0, 48)         fin_stroka.append(\"2.\u0412\u0435\u0441 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 [\u043a\u0433]: \" + str(temp_ves))          if temp_vozr &gt; 0 and temp_vozr &lt;= 10:             temp_sdi = round(temp_ves * (7 + random.randint(0, 2)) \/ 10, 0)         else:             temp_sdi = round(temp_ves * (10 + random.randint(0, 9)) \/ 10, 0)          temp_staz = random.randint(0, 4)         if temp_staz &lt; 2:             temp_sdi = round(temp_ves * (3 + random.randint(0, 2)) \/ 10, 0)             #        bot.send_message(message.chat.id, \"\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")             fin_stroka.append(\"3.\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")          else:             fin_stroka.append(\"3.\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")          fin_stroka.append(\"4.\u0421\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043e\u0437\u0430 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430 [\u0415\u0414]: \" + str(temp_sdi))         temp_staz = random.randint(0, 4)         if temp_staz &lt; 2:             temp_sdi = round(temp_sdi * 0.8)             fin_stroka.append(\"5.\u0427\u0430\u0441\u0442\u044b\u0435 \u0433\u0438\u043f\u043e\u0433\u043b\u0438\u043a\u0435\u043c\u0438\u0438.\")         elif temp_staz &gt; 1 and temp_staz &lt; 4:             temp_sdi = round(temp_sdi * 0.9)             fin_stroka.append(\"5.\u0425\u043e\u0440\u043e\u0448\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u0432 \u043a\u0440\u043e\u0432\u0438, \u0440\u0435\u0434\u043a\u0438\u0435 \u0433\u0438\u043f\u043e\u0433\u043b\u0438\u043a\u0435\u043c\u0438\u0438.\")         else:             fin_stroka.append(\"5.\u0412\u044b\u0441\u043e\u043a\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u0432 \u043a\u0440\u043e\u0432\u0438.\")          # \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0411\u041f, \u0423\u041a         if temp_vozr &lt; 7:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (30 + random.randint(0, 4)) \/ (100 * 24), 1)          elif temp_vozr &lt; 13 and temp_vozr &gt; 6:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (35 + random.randint(0, 4)) \/ (100 * 24), 1)         else:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (40 + random.randint(0, 9)) \/ (100 * 24), 1)          users[call.from_user.id]['uk_et'] = round(temp_sdi * random.randint(12, 20) \/ (10 * temp_ves), 1)          users[call.from_user.id]['phi_et'] = round(random.randint(100, 110) \/ temp_sdi, 1)          bot.send_message(call.from_user.id, '\\n'.join(fin_stroka))         users[call.from_user.id]['about'] = fin_stroka<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f. \u0414\u0430\u043d\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;\u041e \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0435&#187;.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8a4\/eb9\/d9b\/8a4eb9d9be62b8adfdffdedb1e98b3dd.jpg\" alt=\"\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\" title=\"\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\" width=\"421\" height=\"165\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8a4\/eb9\/d9b\/8a4eb9d9be62b8adfdffdedb1e98b3dd.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0418\u043d\u0444\u043e\u00bb, \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430. \u0414\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043b\u0438\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043c\u043e\u0433\u043b\u043e\u0431\u0438\u043d\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/65b\/39a\/d4f\/65b39ad4fdc34ec157e0e0c471454fef.jpg\" alt=\"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" title=\"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" width=\"361\" height=\"295\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65b\/39a\/d4f\/65b39ad4fdc34ec157e0e0c471454fef.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"python\">    if call.data == \"btn_info\"  and chet == 0:          gg = round((users[call.from_user.id]['summ_gluk']*0.6302\/users[call.from_user.id]['N_gluk'])+1.584, 1)         fin_stroka = []         fin_stroka.append(\"\u0412\u0440\u0435\u043c\u044f: \" + str(users[call.from_user.id]['chas'])+\":00\")         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0413\u043b\u044e\u043a\u043e\u0437\u0430 [\u043c\u041c\/\u043b]: \" + str(round(users[call.from_user.id]['gluk_tek'],1)))         fin_stroka.append(\"\u0415\u0434\u0430 [\u0425\u0415]: \" + str(users[call.from_user.id]['kol_xe']))         fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d [\u0415\u0414]: \" + str(users[call.from_user.id]['insulin']))         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:\")         fin_stroka.append(\"\u0411\u041f [\u0415\u0414\/\u0447]: \" + str(users[call.from_user.id]['bp']))         fin_stroka.append(\"\u0423\u041a [\u0415\u0414\/\u0425\u0415]: \" + str(users[call.from_user.id]['uk']))         fin_stroka.append(\"\u0424\u0427\u0418 [\u043c\u041c\/\u043b]: \" + str(users[call.from_user.id]['phi']))         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0413\u043b\u0438\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0433\u0435\u043c\u043e\u0433\u043b\u043e\u0431\u0438\u043d: \" + str(gg))         bot.send_message(call.message.chat.id,  '\\n'.join(fin_stroka))<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0415\u0434\u0430\u00bb \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u043f\u0438\u0449\u0438. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0425\u0415.<\/p>\n<pre><code class=\"python\">    if users[message.from_user.id]['mode'] == 1:         if is_number(message.text):             users[message.from_user.id]['kol_xe'] = float(message.text)             users[message.from_user.id]['mode'] = 0             menu(message)           else:             bot.send_message(message.chat.id, \"\u041c\u043e\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0441\u043b\u043e\")             bot.send_message(message.chat.id, \"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0425\u0415?\")<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0418\u043d\u0441\u0443\u043b\u0438\u043d\u00bb \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044e \u0438 \u0435\u0434\u0443. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0440\u0430\u0441\u0447\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0441\u0447\u0435\u0442 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/db0\/db1\/da8\/db0db1da878befe525749cd8a9ceeb63.jpg\" alt=\"\u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430\" title=\"\u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430\" width=\"390\" height=\"163\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/db0\/db1\/da8\/db0db1da878befe525749cd8a9ceeb63.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"python\">    if call.data == \"btn_insulin\" and chet == 0:           if users[call.from_user.id]['uk'] != 0 and users[call.from_user.id]['bp'] != 0 and users[call.from_user.id]['phi'] != 0:             fin_stroka = []             fin_stroka.append(\"\u041f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0431\u043e\u043b\u044e\u0441\u0430:\")             eat = users[call.from_user.id]['kol_xe']*users[call.from_user.id]['uk']             fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d \u043d\u0430 \u0435\u0434\u0443 [\u0415\u0414]: \" + str(users[call.from_user.id]['kol_xe'])+\" * \"+str(users[call.from_user.id]['uk'])+\" = \"+str(round(eat, 1)))             korr = (users[call.from_user.id]['gluk_tek']-7)\/users[call.from_user.id]['phi']             fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0446. [\u0415\u0414]: (\" + str(users[call.from_user.id]['gluk_tek'])+\" - 7)\/ \"+str(users[call.from_user.id]['phi'])+\" = \"+str(round(korr, 1)))             itog = eat+korr             fin_stroka.append(\"\u0418\u0442\u043e\u0433\u043e [\u0415\u0414]:\" + str(round(eat, 1))+\" + \"+str(round(korr, 1))+\" = \"+ str(round(itog, 1)))             bot.send_message(call.message.chat.id, '\\n'.join(fin_stroka))              bot.send_message(call.message.chat.id, \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430[\u0415\u0414]\")             chet = 1  # \u0412\u044b\u0431\u0440\u0430\u043d \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b             bot.register_next_step_handler(call.message, btn_insulin)  # \u0412\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u043e\u043b\u044e\u0441\u0430         else : bot.send_message(call.message.chat.id, \"\u041d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u044b \u0423\u041a, \u0424\u0427\u0418, \u0411\u041f.\")<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0438 \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0448\u0430\u0433\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 2 \u0447\u0430\u0441\u0430\u00bb. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435.<\/p>\n<pre><code class=\"python\">    if call.data == \"btn_peremotka\" and chet == 0:          bot.send_message(call.message.chat.id, \"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 2 \u0447\u0430\u0441\u0430.\")         if users[call.from_user.id]['chas']&lt;24:             users[call.from_user.id]['chas'] +=2         else:             users[call.from_user.id]['chas'] = 0         users[call.from_user.id]['summ_gluk'] += users[call.from_user.id]['gluk_tek']         users[call.from_user.id]['N_gluk'] += 1         users[call.from_user.id]['gluk_tek'] += (users[call.from_user.id]['bp_et']-users[call.from_user.id]['bp'])*2*users[call.from_user.id]['phi_et']         users[call.from_user.id]['gluk_tek'] += ((users[call.from_user.id]['kol_xe']*users[call.from_user.id]['uk_et'])-users[call.from_user.id]['insulin'])*users[call.from_user.id]['phi_et']         users[call.from_user.id]['kol_xe'] = 0         users[call.from_user.id]['insulin'] = 0<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u043b\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0448\u0430\u0433 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u0438 \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0418\u043d\u0444\u043e\u00bb.<\/p>\n<p><strong>!!!\u0414\u0430\u043d\u043d\u044b\u0439 \u0431\u043e\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e\u043c\u043f\u044b \u0438\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430 \u0431\u0435\u0437 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0432\u0440\u0430\u0447\u0430!!!<\/strong>  <\/p>\n<p>\u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u043e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <\/p>\n<p><strong>https:\/\/t.me\/Sugarnorm_pomp_bot<\/strong><\/p>\n<p>\u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043f\u0440\u043e\u0441\u044c\u0431\u0430 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0412\u0430\u0448\u0435 \u0432\u0438\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u043a\u0438 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0445\u043e\u0447\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043e\u0431 \u044d\u0442\u043e\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u043c\u0435\u043d\u044c\u0448\u0435 2 \u043c\u041c\/\u043b \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 20 \u043c\u041c\/\u043b.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/838426\/\"> https:\/\/habr.com\/ru\/articles\/838426\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435 \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0443 \u0448\u0438\u0440\u043e\u043a\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u043c\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u0431\u043e\u0442 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u043d\u043e \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 &#8212; \u0442\u0440\u0435\u043d\u0430\u0436\u0435\u0440 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u043e\u0442\u0435\u0440\u0430\u043f\u0438\u0438 \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0435\u0430\u043a\u0446\u0438\u0435\u0439 \u0432 \u0432\u0438\u0434\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u044e\u043a\u043e\u0437\u044b. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0432 \u0431\u043e\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e \u043c\u0435\u043d\u044e, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041c\u0435\u043d\u044e<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432. \u0413\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0438\u0434\u0435\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0447\u0430\u044f, \u043d\u043e \u043e\u043d\u0430 \u043e\u0442\u0434\u0430\u043b\u044f\u0435\u0442 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0412\u0435\u0434\u044c \u0432 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u044e\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430: \u0432\u043e\u0437\u0440\u0430\u0441\u0442, \u0432\u0435\u0441, \u0441\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043e\u0437\u0430 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430, \u0423\u041a (\u0443\u0433\u043b\u0435\u0432\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442), \u0424\u0427\u0418 (\u0444\u0430\u043a\u0442\u043e\u0440 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0443), \u0411\u041f (\u0431\u0430\u0437\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\/ \u0431\u0430\u0437\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c). \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c\u0438 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043d\u0430\u0443\u0447\u0438\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0431\u043e\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u00ab\u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c\u0438\u00bb \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0434 \u043c\u043e\u0434\u0443\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430.<\/p>\n<pre><code class=\"python\"> if call.data == \"btn_new\"  and chet == 0: # \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u044f inline \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432          users[call.from_user.id]['uk_et'] = 0         users[call.from_user.id]['phi_et'] = 0         users[call.from_user.id]['bp_et'] = 0         users[call.from_user.id]['uk'] = 0         users[call.from_user.id]['phi'] = 0         users[call.from_user.id]['bp'] = 0         users[call.from_user.id]['mode'] = 0         users[call.from_user.id]['chas'] = 0         users[call.from_user.id]['summ_gluk'] = 5.5         users[call.from_user.id]['N_gluk'] = 1         users[call.from_user.id]['gluk_tek'] = 5.5         users[call.from_user.id]['kol_xe'] = 0         users[call.from_user.id]['about'] = \" \"         users[call.from_user.id]['insulin'] = 0  # \u0421\u0431\u0440\u043e\u0441 \u0440\u0435\u0436\u0438\u043c\u0430          fin_stroka = []         fin_stroka.append(\"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430:\")         temp_vozr = random.randint(1, 69)         fin_stroka.append(\"1.\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 [\u043b\u0435\u0442]: \" + str(temp_vozr))         if temp_vozr == 1:             temp_ves = 10 + random.randint(0, 2)         elif temp_vozr == 2:             temp_ves = 11 + random.randint(0, 3)         elif temp_vozr == 3:             temp_ves = 13 + random.randint(0, 2)         elif temp_vozr == 4:             temp_ves = 13 + random.randint(0, 5)         elif temp_vozr == 5:             temp_ves = 15 + random.randint(0, 7)         elif temp_vozr == 6:             temp_ves = 18 + random.randint(0, 4)         elif temp_vozr == 7:             temp_ves = 20 + random.randint(0, 8)         elif temp_vozr == 8:             temp_ves = 22 + random.randint(0, 9)         elif temp_vozr == 9:             temp_ves = 25 + random.randint(0, 10)         elif temp_vozr == 10:             temp_ves = 28 + random.randint(0, 10)         elif temp_vozr == 11:             temp_ves = 30 + random.randint(0, 11)         elif temp_vozr == 12:             temp_ves = 34 + random.randint(0, 7)         elif temp_vozr == 13:             temp_ves = 38 + random.randint(0, 15)         elif temp_vozr == 14:             temp_ves = 44 + random.randint(0, 13)         elif temp_vozr == 15:             temp_ves = 46 + random.randint(0, 23)         elif temp_vozr == 16:             temp_ves = 48 + random.randint(0, 27)         elif temp_vozr == 17:             temp_ves = 49 + random.randint(0, 30)         else:             temp_ves = 51 + random.randint(0, 48)         fin_stroka.append(\"2.\u0412\u0435\u0441 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 [\u043a\u0433]: \" + str(temp_ves))          if temp_vozr &gt; 0 and temp_vozr &lt;= 10:             temp_sdi = round(temp_ves * (7 + random.randint(0, 2)) \/ 10, 0)         else:             temp_sdi = round(temp_ves * (10 + random.randint(0, 9)) \/ 10, 0)          temp_staz = random.randint(0, 4)         if temp_staz &lt; 2:             temp_sdi = round(temp_ves * (3 + random.randint(0, 2)) \/ 10, 0)             #        bot.send_message(message.chat.id, \"\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")             fin_stroka.append(\"3.\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")          else:             fin_stroka.append(\"3.\u0421\u0442\u0430\u0436 \u0441\u0430\u0445\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u0431\u0435\u0442\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043b\u0435\u0442.\")          fin_stroka.append(\"4.\u0421\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043e\u0437\u0430 \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430 [\u0415\u0414]: \" + str(temp_sdi))         temp_staz = random.randint(0, 4)         if temp_staz &lt; 2:             temp_sdi = round(temp_sdi * 0.8)             fin_stroka.append(\"5.\u0427\u0430\u0441\u0442\u044b\u0435 \u0433\u0438\u043f\u043e\u0433\u043b\u0438\u043a\u0435\u043c\u0438\u0438.\")         elif temp_staz &gt; 1 and temp_staz &lt; 4:             temp_sdi = round(temp_sdi * 0.9)             fin_stroka.append(\"5.\u0425\u043e\u0440\u043e\u0448\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u0432 \u043a\u0440\u043e\u0432\u0438, \u0440\u0435\u0434\u043a\u0438\u0435 \u0433\u0438\u043f\u043e\u0433\u043b\u0438\u043a\u0435\u043c\u0438\u0438.\")         else:             fin_stroka.append(\"5.\u0412\u044b\u0441\u043e\u043a\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u0432 \u043a\u0440\u043e\u0432\u0438.\")          # \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0411\u041f, \u0423\u041a         if temp_vozr &lt; 7:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (30 + random.randint(0, 4)) \/ (100 * 24), 1)          elif temp_vozr &lt; 13 and temp_vozr &gt; 6:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (35 + random.randint(0, 4)) \/ (100 * 24), 1)         else:             users[call.from_user.id]['bp_et'] = round(temp_sdi * (40 + random.randint(0, 9)) \/ (100 * 24), 1)          users[call.from_user.id]['uk_et'] = round(temp_sdi * random.randint(12, 20) \/ (10 * temp_ves), 1)          users[call.from_user.id]['phi_et'] = round(random.randint(100, 110) \/ temp_sdi, 1)          bot.send_message(call.from_user.id, '\\n'.join(fin_stroka))         users[call.from_user.id]['about'] = fin_stroka<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f. \u0414\u0430\u043d\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;\u041e \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0435&#187;.<\/p>\n<figure class=\"\">\n<div><figcaption>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0418\u043d\u0444\u043e\u00bb, \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430. \u0414\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043b\u0438\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043c\u043e\u0433\u043b\u043e\u0431\u0438\u043d\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438.<\/p>\n<figure class=\"\">\n<div><figcaption>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"python\">    if call.data == \"btn_info\"  and chet == 0:          gg = round((users[call.from_user.id]['summ_gluk']*0.6302\/users[call.from_user.id]['N_gluk'])+1.584, 1)         fin_stroka = []         fin_stroka.append(\"\u0412\u0440\u0435\u043c\u044f: \" + str(users[call.from_user.id]['chas'])+\":00\")         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0413\u043b\u044e\u043a\u043e\u0437\u0430 [\u043c\u041c\/\u043b]: \" + str(round(users[call.from_user.id]['gluk_tek'],1)))         fin_stroka.append(\"\u0415\u0434\u0430 [\u0425\u0415]: \" + str(users[call.from_user.id]['kol_xe']))         fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d [\u0415\u0414]: \" + str(users[call.from_user.id]['insulin']))         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:\")         fin_stroka.append(\"\u0411\u041f [\u0415\u0414\/\u0447]: \" + str(users[call.from_user.id]['bp']))         fin_stroka.append(\"\u0423\u041a [\u0415\u0414\/\u0425\u0415]: \" + str(users[call.from_user.id]['uk']))         fin_stroka.append(\"\u0424\u0427\u0418 [\u043c\u041c\/\u043b]: \" + str(users[call.from_user.id]['phi']))         fin_stroka.append(\"                         \")         fin_stroka.append(\"\u0413\u043b\u0438\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0433\u0435\u043c\u043e\u0433\u043b\u043e\u0431\u0438\u043d: \" + str(gg))         bot.send_message(call.message.chat.id,  '\\n'.join(fin_stroka))<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0415\u0434\u0430\u00bb \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u043f\u0438\u0449\u0438. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0425\u0415.<\/p>\n<pre><code class=\"python\">    if users[message.from_user.id]['mode'] == 1:         if is_number(message.text):             users[message.from_user.id]['kol_xe'] = float(message.text)             users[message.from_user.id]['mode'] = 0             menu(message)           else:             bot.send_message(message.chat.id, \"\u041c\u043e\u0436\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0441\u043b\u043e\")             bot.send_message(message.chat.id, \"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0425\u0415?\")<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0418\u043d\u0441\u0443\u043b\u0438\u043d\u00bb \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044e \u0438 \u0435\u0434\u0443. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0440\u0430\u0441\u0447\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0441\u0447\u0435\u0442 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f.<\/p>\n<figure class=\"\">\n<div><figcaption>\u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0431\u043e\u043b\u044e\u0441\u0430<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"python\">    if call.data == \"btn_insulin\" and chet == 0:           if users[call.from_user.id]['uk'] != 0 and users[call.from_user.id]['bp'] != 0 and users[call.from_user.id]['phi'] != 0:             fin_stroka = []             fin_stroka.append(\"\u041f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0431\u043e\u043b\u044e\u0441\u0430:\")             eat = users[call.from_user.id]['kol_xe']*users[call.from_user.id]['uk']             fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d \u043d\u0430 \u0435\u0434\u0443 [\u0415\u0414]: \" + str(users[call.from_user.id]['kol_xe'])+\" * \"+str(users[call.from_user.id]['uk'])+\" = \"+str(round(eat, 1)))             korr = (users[call.from_user.id]['gluk_tek']-7)\/users[call.from_user.id]['phi']             fin_stroka.append(\"\u0418\u043d\u0441\u0443\u043b\u0438\u043d \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0446. [\u0415\u0414]: (\" + str(users[call.from_user.id]['gluk_tek'])+\" - 7)\/ \"+str(users[call.from_user.id]['phi'])+\" = \"+str(round(korr, 1)))             itog = eat+korr             fin_stroka.append(\"\u0418\u0442\u043e\u0433\u043e [\u0415\u0414]:\" + str(round(eat, 1))+\" + \"+str(round(korr, 1))+\" = \"+ str(round(itog, 1)))             bot.send_message(call.message.chat.id, '\\n'.join(fin_stroka))              bot.send_message(call.message.chat.id, \"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0443\u043b\u0438\u043d\u0430[\u0415\u0414]\")             chet = 1  # \u0412\u044b\u0431\u0440\u0430\u043d \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b             bot.register_next_step_handler(call.message, btn_insulin)  # \u0412\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u043e\u043b\u044e\u0441\u0430         else : bot.send_message(call.message.chat.id, \"\u041d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u044b \u0423\u041a, \u0424\u0427\u0418, \u0411\u041f.\")<\/code><\/pre>\n<p>\u041a\u043d\u043e\u043f\u043a\u0438 \u0423\u041a, \u0424\u0427\u0418 \u0438 \u0411\u041f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0448\u0430\u0433\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 2 \u0447\u0430\u0441\u0430\u00bb. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435.<\/p>\n<pre><code class=\"python\">    if call.data == \"btn_peremotka\" and chet == 0:          bot.send_message(call.message.chat.id, \"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 2 \u0447\u0430\u0441\u0430.\")         if users[call.from_user.id]['chas']&lt;24:             users[call.from_user.id]['chas'] +=2         else:             users[call.from_user.id]['chas'] = 0         users[call.from_user.id]['summ_gluk'] += users[call.from_user.id]['gluk_tek']         users[call.from_user.id]['N_gluk'] += 1         users[call.from_user.id]['gluk_tek'] += (users[call.from_user.id]['bp_et']-users[call.from_user.id]['bp'])*2*users[call.from_user.id]['phi_et']<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-430211","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/430211","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=430211"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/430211\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}