{"TITLE":"Wether","DESCRIPTION":"Wether Callback","TYPE_EVENT":"9","ENABLE":"1","CODE":"if (strripos($callback, \"Weather\") > -1) {\r\n \t$this->sendAction($chat_id,\"typing\");\r\n\t$temp_emoji = hex2bin('F09F8CA1');\r\n\t$hum_emoji  = hex2bin('F09F92A7');\r\n\t$wind_emoji = hex2bin('F09F92A8');\r\n\t$pres_emoji = hex2bin('F09F92AA');\r\n\t$time_emoji = hex2bin('F09F959B');\r\n\t$sun_emoji \t= hex2bin('E29880');\r\n\t$cloud_emoji= hex2bin('E29881');\r\n\t$enable \t= hex2bin('E29C85');\r\n\t$disable \t= hex2bin('E29D8C');\r\n\t$off \t\t= hex2bin('F09F8C91');\r\n\t$on  \t\t= hex2bin('F09F8C95');   \r\n\t$calendar \t= hex2bin('F09F9385');\r\n\t$pog \t\t= hex2bin('E29B85');\r\n\t$sta \t\t= hex2bin('F09F92AC');\r\n\t$light\t\t= hex2bin('F09F92A1');\r\n\t$settings   = hex2bin('F09F94A8');\r\n\r\n\t$confirm_emoji = \thex2bin('E29C85');\r\n\r\n\t$wether_emoji = \thex2bin('E29B85');\r\n\t$settings_emoji =\thex2bin('F09F94A8');\r\n\t$other_emoji= \t\thex2bin('E29AAA');\r\n\t$radio_emoji= \t\thex2bin('F09F93BB');\r\n\t$backArrow_emoji =  hex2bin('E29EA1');\r\n\t$optionMenu = array(\r\n\t\t\t\t\tarray($wether_emoji.\"\u041f\u043e\u0433\u043e\u0434\u0430\"),\r\n\t\t\t\t\tarray($settings_emoji.\"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\"),\r\n\t\t\t\t\tarray($other_emoji.\"\u0414\u0440\u0443\u0433\u043e\u0435\"),\r\n\t\t\t\t\tarray($backArrow_emoji.\"\u041d\u0430\u0437\u0430\u0434\")\r\n\t\t\t);\r\n\r\n\tswitch (explode('*', $callback)[1]) {\r\n\t    case \"Today\":\r\n\t\t\t$wether = \"\u0421\u0435\u0439\u0447\u0430\u0441: \\n\"\r\n\t    \t\t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \".gg(\"ow_fact.temperature\").\"\u00b0C\\n\"\r\n\t    \t\t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f: \".gg(\"ow_fact.temp_feels_like\").\"\u00b0C\\n\"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_fact.temp_min\").\"\u00b0C\\n\"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_fact.temp_max\").\"\u00b0C\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_fact.pressure\").\"\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u0432 mmhg): \".gg(\"ow_fact.pressure_mmhg\").\"\\n\"\r\n\t    \t\t.$hum_emoji.\"\u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c: \".gg(\"ow_fact.humidity\").\"%\".\"\\n\"\r\n\t    \t\t.$wind_emoji.\"\u0412\u0435\u0442\u0435\u0440: \\n    \"\r\n\t        \t.$wind_emoji.\"\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_fact.wind_direction_text\").\"(\".gg(\"ow_fact.wind_direction\").\"\u00b0, \".gg(\"ow_fact.wind_direction_full\").\")\".\"\\n    \"\r\n\t    \t\t.$wind_emoji.\"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \".gg(\"ow_fact.wind_speed\").\"\u043a\u043c\/\u0447\".\" | \".round(gg(\"ow_fact.wind_speed\")\/3.6,1).\"\u043c\/\u0441\\n\"\r\n\t    \t\t.$cloud_emoji.\"\u041e\u0441\u0430\u0434\u043a\u0438: \".gg(\"ow_fact.weather_type\").\"\\n\"\r\n\t    \t\t.$sun_emoji.\"\u0421\u043e\u043b\u043d\u0446\u0435:\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0412\u043e\u0441\u0445\u043e\u0434: \".gg(\"ow_fact.sunrise\").\"\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0417\u0430\u043a\u0430\u0442: \".gg(\"ow_fact.sunset\").\"\\n\"\r\n\t    \t\t.$time_emoji.\"\u0414\u043b\u0438\u043d\u0430 \u0434\u043d\u044f: \".gg(\"ow_fact.day_length\");\r\n\t        break;\r\n\t    case \"Tommorow\":\r\n\t\t$wether = \"\u0417\u0430\u0432\u0442\u0440\u0430: \\n\"\r\n\t        \t.$calendar.\"\u0414\u0430\u0442\u0430: \".gg(\"ow_forecast_2_1.date\").\"\\n\"\r\n\t        \t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430:\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u0423\u0442\u0440\u043e\u043c: \".gg(\"ow_forecast_2_1.temp_morn\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0414\u043d\u0451\u043c: \".gg(\"ow_forecast_2_1.temp_day\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0412\u0435\u0447\u0435\u0440\u043e\u043c: \".gg(\"ow_forecast_2_1.temp_eve\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u041d\u043e\u0447\u044c\u044e: \".gg(\"ow_forecast_2_1.temp_night\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0440\u043e\u043c: \".gg(\"ow_forecast_2_1.feelslike_temp_morn\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0434\u043d\u0451\u043c: \".gg(\"ow_forecast_2_1.feelslike_temp_day\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0447\u0435\u0440\u043e\u043c: \".gg(\"ow_forecast_2_1.feelslike_temp_eve\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0447\u044c\u044e: \".gg(\"ow_forecast_2_1.feelslike_temp_night\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_forecast_2_1.temp_min\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_forecast_2_1.temp_max\").\"\u00b0C\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_forecast_2_1.pressure\").\"\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u0432 mmhg): \".gg(\"ow_forecast_2_1.pressure_mmhg\").\"\\n\"\r\n\t    \t\t.$hum_emoji.\"\u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c: \".gg(\"ow_forecast_2_1.humidity\").\"%\".\"\\n\"\r\n\t    \t\t.$wind_emoji.\"\u0412\u0435\u0442\u0435\u0440: \\n    \"\r\n\t        \t.$wind_emoji.\"\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_forecast_2_1.wind_direction_text\").\"(\".gg(\"ow_forecast_2_1.wind_direction\").\"\u00b0, \".gg(\"ow_forecast_2_1.wind_direction_full\").\")\".\"\\n    \"\r\n\t    \t\t.$wind_emoji.\"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \".gg(\"ow_forecast_2_1.wind_speed\").\"\u043a\u043c\/\u0447\".\" | \".round(gg(\"ow_forecast_2_1.wind_speed\")\/3.6,1).\"\u043c\/\u0441\\n\"\r\n\t    \t\t.$cloud_emoji.\"\u041e\u0441\u0430\u0434\u043a\u0438: \".gg(\"ow_forecast_2_1.weather_type\").\"\\n\"\r\n\t    \t\t.$sun_emoji.\"\u0421\u043e\u043b\u043d\u0446\u0435:\\n    \"\r\n\t        \t.$sun_emoji.\"\u0418\u043d\u0434\u0435\u043a\u0441 \u0423\u0424(\u0443\u043b\u044c\u0442\u0440\u0430\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u043e\u0435 \u0438\u0437\u043b\u0443\u0447\u0435\u043d\u0438\u0435): \".gg(\"ow_forecast_2_1.uvindex\").\"\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0412\u043e\u0441\u0445\u043e\u0434: \".gg(\"ow_forecast_2_1.sunrise\").\"\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0417\u0430\u043a\u0430\u0442: \".gg(\"ow_forecast_2_1.sunset\").\"\\n\"\r\n\t    \t\t.$time_emoji.\"\u0414\u043b\u0438\u043d\u0430 \u0434\u043d\u044f: \".gg(\"ow_forecast_2_1.day_length\");\r\n\t        break;\r\n\t    case \"AfterTommorow\":\r\n\t\t$wether = \"\u041f\u043e\u0441\u043b\u0435\u0437\u0430\u0432\u0442\u0440\u0430: \\n\"\r\n\t    \t\t.$calendar.\"\u0414\u0430\u0442\u0430: \".gg(\"ow_forecast_2_2.date\").\"\\n\"\r\n\t        \t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \\n    \"\r\n\t    \t\t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0443\u0442\u0440\u043e\u043c: \".gg(\"ow_forecast_2_2.temp_morn\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u043d\u0451\u043c: \".gg(\"ow_forecast_2_2.temp_day\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u0435\u0447\u0435\u0440\u043e\u043c: \".gg(\"ow_forecast_2_2.temp_eve\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043d\u043e\u0447\u044c\u044e: \".gg(\"ow_forecast_2_2.temp_night\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0440\u043e\u043c: \".gg(\"ow_forecast_2_2.feelslike_temp_morn\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0434\u043d\u0451\u043c: \".gg(\"ow_forecast_2_2.feelslike_temp_day\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0447\u0435\u0440\u043e\u043c: \".gg(\"ow_forecast_2_2.feelslike_temp_eve\").\"\u00b0C\\n    \"\r\n\t        \t.$temp_emoji.\"\u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0447\u044c\u044e: \".gg(\"ow_forecast_2_2.feelslike_temp_night\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_forecast_2_2.temp_min\").\"\u00b0C\\n    \"\r\n\t    \t\t.$temp_emoji.\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f: \".gg(\"ow_forecast_2_2.temp_max\").\"\u00b0C\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_forecast_2_2.pressure\").\"\\n\"\r\n\t    \t\t.$pres_emoji.\"\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u0432 mmhg): \".gg(\"ow_forecast_2_2.pressure_mmhg\").\"\\n\"\r\n\t    \t\t.$hum_emoji.\"\u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c: \".gg(\"ow_forecast_2_2.humidity\").\"%\".\"\\n\"\r\n\t    \t\t.$wind_emoji.\"\u0412\u0435\u0442\u0435\u0440: \\n    \"\r\n\t        \t.$wind_emoji.\"\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \".gg(\"ow_forecast_2_2.wind_direction_text\").\"(\".gg(\"ow_forecast_2_2.wind_direction\").\"\u00b0, \".gg(\"ow_forecast_2_2.wind_direction_full\").\")\".\"\\n    \"\r\n\t    \t\t.$wind_emoji.\"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \".gg(\"ow_forecast_2_2.wind_speed\").\"\u043a\u043c\/\u0447\".\" | \".round(gg(\"ow_forecast_2_2.wind_speed\")\/3.6,1).\"\u043c\/\u0441\\n\"\r\n\t    \t\t.$cloud_emoji.\"\u041e\u0441\u0430\u0434\u043a\u0438: \".gg(\"ow_forecast_2_2.weather_type\").\"\\n\"\r\n\t    \t\t.$sun_emoji.\"\u0421\u043e\u043b\u043d\u0446\u0435:\\n    \"\r\n\t        \t.$sun_emoji.\"\u0418\u043d\u0434\u0435\u043a\u0441 \u0423\u0424(\u0443\u043b\u044c\u0442\u0440\u0430\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u043e\u0435 \u0438\u0437\u043b\u0443\u0447\u0435\u043d\u0438\u0435): \".gg(\"ow_forecast_2_2.uvindex\").\"\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0412\u043e\u0441\u0445\u043e\u0434: \".gg(\"ow_forecast_2_2.sunrise\").\"\\n    \"\r\n\t    \t\t.$time_emoji.\"\u0417\u0430\u043a\u0430\u0442: \".gg(\"ow_forecast_2_2.sunset\").\"\\n\"\r\n\t    \t\t.$time_emoji.\"\u0414\u043b\u0438\u043d\u0430 \u0434\u043d\u044f: \".gg(\"ow_forecast_2_2.day_length\");\r\n\t        break;\r\n    \tcase \"Refresh\":\r\n    \t\tinclude_once(DIR_MODULES . 'app_openweather\/app_openweather.class.php');\r\n\t\t\t$openweather = new app_openweather();\r\n\t\t\t$openweather->processSubscription('HOURLY');\r\n    \t\t$this->sendAnswerCallbackQuery($callback_id, $confirm_emoji.\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e\", false);\r\n    \t\t$skip = true;\r\n    \t\tbreak;\r\n\t}\r\n\r\n\t$this->sendMessageToUser($chat_id, $wether, $optionMenu);\r\n\t$skip = true;\r\n}"}