{"TITLE":"GetSomething","DESCRIPTION":"GetSomething Callback","TYPE_EVENT":"9","ENABLE":"1","CODE":"if (strripos($callback, 'GetSomething') > -1) {\r\n\t$refresh_emoji =\thex2bin('E299BB');\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$backArrow_emoji =  hex2bin('E29EA1');\r\n\t$confirm_emoji = \thex2bin('E29C85');\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\t);\r\n\tswitch (explode('*', $callback)[1]) {\r\n    \tcase \"Value\":\r\n    \t\t$optionCallback =array( \r\n            \t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t\t\t                       \t$text = $refresh_emoji.\"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\",\r\n\t\t\t                       \t\"\",\r\n\t\t\t                       \t\"GetSomething*Refresh*\".gg(explode('*', $callback)[2])\r\n\t\t\t                    ))\r\n\t\t\t\t\t\t\t);\r\n\t\t\t$this->sendContent(array(\r\n\t\t\t\t\t\t\t\t'chat_id' => $chat_id,\r\n\t\t\t\t\t\t\t\t'text' => gg(explode('*', $callback)[2]),\r\n\t\t\t\t\t\t\t\t'reply_markup' => $this->buildInlineKeyBoard($optionCallback)));\r\n\t\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    case \"Chart\":\r\n    \t\t$this->sendAction($chat_id,\"upload_photo\");\r\n\t\t\t$url = 'http:\/\/192.168.1.99\/pChart\/?p='.explode('*', $callback)[2].'&width=400&type=7d&theme=grid-light';\r\n\t\t\t$path = '.\/cms\/cached\/chart.jpg';\r\n\t\t\tfile_put_contents($path, file_get_contents($url));\r\n\t\t\t$this->sendImage($chat_id,'\/var\/www\/html\/cms\/cached\/chart.jpg', '\u0413\u0440\u0430\u0444\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 7 \u0434\u043d\u0435\u0439.');  \t\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        break;\r\n    \tcase \"Refresh\":\r\n    \t\t$optionCallback =array( \r\n            \t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t\t\t                       \t$text = $refresh_emoji.\"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\",\r\n\t\t\t                       \t\"\",\r\n\t\t\t                       \t\"GetSomething*Refresh*\".gg(explode('*', $callback)[3])\r\n\t\t\t                    ))\r\n\t\t\t\t\t\t\t);\r\n    \t\t$this->editMessage($chat_id, $message_id, gg(explode('*', $callback)[3]), $this->buildInlineKeyBoard($optionCallback));\r\n   \t\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        break;\r\n    }\r\n\r\n}"}