Ignore custom input

parent 8a70d87e
......@@ -62,10 +62,6 @@ class Kernel
$offset = 0;
// Take custom input into account.
if ($custom_input = $this->app->getCustomInput()) {
$response = new Response(json_decode($custom_input, true), $this->app->getBotUsername());
} else {
if (DB::isDbConnected()) {
// Get last update id from the database
$last_update = DB::selectTelegramUpdate(1);
......@@ -85,7 +81,6 @@ class Kernel
'timeout' => $timeout,
]
);
}
if ($response->isOk()) {
$results = $response->getResult();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment