{"TITLE":"ExchangeRate","DESCRIPTION":"ExchangeRate Callback","TYPE_EVENT":"9","ENABLE":"1","CODE":"if (strripos($callback, \"ExchangeRate\") > -1) {\r\n\t$money\t= \t\t\thex2bin('F09F92B8');\r\n\t$refresh_emoji = \thex2bin('E299BB');\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$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\t);\r\n\r\n\tswitch (explode('*', $callback)[1]) {\r\n    \tcase \"Show\":\r\n    \t\t$this->sendAction($chat_id,\"typing\");\r\n\t    \t$optionCallback = \tarray( \r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0414\u043e\u043b\u043b\u0430\u0440\\\u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.dollarbyn\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0415\u0432\u0440\u043e\\\u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.eurobyn\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0414\u043e\u043b\u043b\u0430\u0440\\\u0420\u043e\u0441c\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.dollarrur\"\r\n\t                            \t)),\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0415\u0432\u0440\u043e\\\u0420\u043e\u0441c\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.eurorur\"\r\n\t                            \t)),\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0414\u043e\u043b\u043b\u0430\u0440\\\u0422\u0435\u043d\u0433\u0435\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.kztusd\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0415\u0432\u0440\u043e\\\u0422\u0435\u043d\u0433\u0435\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.kzteur\"\r\n\t                            \t)),\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0414\u043e\u043b\u043b\u0430\u0440\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u043e\u043a\u0443\u043f\u043a\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.usdbuy\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0415\u0432\u0440\u043e\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u043e\u043a\u0443\u043f\u043a\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.eurobuy\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0420\u043e\u0441c\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u043e\u043a\u0443\u043f\u043a\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.rurbuy\"\r\n\t                            \t)),\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0414\u043e\u043b\u043b\u0430\u0440\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u0440\u043e\u0434\u0430\u0436\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.usdsale\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0415\u0432\u0440\u043e\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u0440\u043e\u0434\u0430\u0436\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.eurosale\"\r\n\t                            \t)),\r\n\t                            \tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $money.\"\u0420\u043e\u0441c\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c\\\u0413\u0440\u0438\u0432\u043d\u0430 \u041f\u0440\u043e\u0434\u0430\u0436\u0430\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Get*exchange_rate.rursale\"\r\n\t                            \t)),\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $refresh_emoji.\"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Refresh*Main\"\r\n\t                            \t))\r\n\t                        \t);\r\n\t    \t$this->sendContent(array(\r\n\t                        \t'chat_id' => $chat_id,\r\n\t                        \t'text' => \"\u041a\u0443\u0440\u0441 \u0432\u0430\u043b\u044e\u0442:\",\r\n\t                        \t'reply_markup' => $this->buildInlineKeyBoard($optionCallback)));\r\n    \t\t$this->sendAnswerCallbackQuery($callback_id, $confirm_emoji.\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e\", false);\r\n\t        break;\r\n\t    case \"Refresh\":\r\n    \t\tswitch (explode('*', $callback)[2]) {\r\n            \tcase \"Main\":\r\n            \t\tinclude_once(DIR_MODULES . 'ExchangeRates\/ExchangeRates.class.php');\r\n\t\t\t\t\t$rate = new ExchangeRates();\r\n\t\t\t\t\t$rate->SaveAutoUpdate();\r\n    \t\t\t\t$this->sendAnswerCallbackQuery($callback_id, $confirm_emoji.\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e\", false);\r\n    \t\t\t\t$skip = true;\r\n\t        \t\tbreak;\r\n            \tcase \"Answer\":\r\n            \t\tinclude_once(DIR_MODULES . 'ExchangeRates\/ExchangeRates.class.php');\r\n\t\t\t\t\t$rate = new ExchangeRates();\r\n\t\t\t\t\t$rate->SaveAutoUpdate();\r\n            \t\t$optionCallback = \tarray(\r\n\t        \t\t\t\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\"ExchangeRate*Refresh*Answer*\".explode('*', $callback)[3]\r\n\t                            \t\t\t))\r\n\t                        \t\t\t);\r\n            \t\t$this->editMessage($chat_id, $message_id,gg(explode('*', $callback)[3]),$optionCallback);\r\n    \t\t\t\t$this->sendAnswerCallbackQuery($callback_id, $confirm_emoji.\"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e\", false);\r\n    \t\t\t\t$skip = true;\r\n\t        \t\tbreak;\r\n            }\r\n    \t\t\r\n\t    case \"Get\":\r\n    \t\t$this->sendAction($chat_id,\"typing\");\r\n    \t\t$optionCallback = \tarray(\r\n\t        \t\t\t\t\t\tarray($this->buildInlineKeyboardButton(\r\n\t                                \t$text = $refresh_emoji.\"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\",\r\n\t                                \t\"\",\r\n\t                                \t\"ExchangeRate*Refresh*Answer*\".explode('*', $callback)[2]\r\n\t                            \t))\r\n\t                        \t);\r\n    \t\t$this->sendContent(array(\r\n\t                        \t'chat_id' => $chat_id,\r\n\t                        \t'text' => gg(explode('*', $callback)[2]),\r\n\t                        \t'reply_markup' => $this->buildInlineKeyBoard($optionCallback)));\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    }\r\n}"}