{"TITLE":"ScriptExecuting","DESCRIPTION":"ScriptExecuting Callback","TYPE_EVENT":"9","ENABLE":"1","CODE":"if (strripos($callback, 'ScriptExecuting') > -1) {\r\n\t$confirm_emoji = \thex2bin('E29C85');\r\n\t$cross_emoji =  \thex2bin('E29D8C');\r\n\t$persscript_emoji =\thex2bin('F09F939D');\r\n\t$script_emoji = \thex2bin('F09F9384');\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\t$rec = SQLSelect(\"SELECT * FROM scripts;\");\r\n\t\t\t$total = count($rec);\r\n\t\t\tfor($i = 0; $i < $total; $i++) {\r\n\t\t\t    $option[] = $this->buildInlineKeyboardButton($text = $persscript_emoji.$rec[$i][\"TITLE\"],\"\",\"ScriptExecuting*Execute*\".$rec[$i][\"TITLE\"]);\r\n\t\t\t}\r\n    \t\t$option[] = $this->buildInlineKeyboardButton($text = $script_emoji.\"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f\", \"\", \"Scripts*Show\");\r\n\t\t\t$count_row = 2;\r\n\t\t\t$keyb = $this->buildInlineKeyBoard(array_chunk($option, $count_row));\r\n\t\t\t$this->sendContent(array('chat_id' => $chat_id, 'text' => \"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u043c\u0438:\", 'reply_markup' => $keyb));\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    \tcase \"Execute\":\r\n    \t\trunScript(explode('*', $callback)[2]);\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    }\r\n}"}