@@ -339,7 +339,7 @@ class CleanupCommand extends AdminCommand
'text'=>'*No database connection!*',
];
returnRequest::sendMessage($data);
returnClient::sendMessage($data);
}
/**
...
...
@@ -375,7 +375,7 @@ class CleanupCommand extends AdminCommand
$data['text']='Cleaning up tables:'.PHP_EOL.implode(PHP_EOL,$infos);
Request::sendMessage($data);
Client::sendMessage($data);
$rows=0;
$pdo=DB::getPdo();
...
...
@@ -395,7 +395,7 @@ class CleanupCommand extends AdminCommand
$pdo->rollBack();// rollback changes on exception (useful if you want to track down error - you can't replicate it when some of the data is already deleted...)
$data['text']='*Database cleanup failed!* _(check your error logs)_';
Request::sendMessage($data);
Client::sendMessage($data);
thrownewTelegramException($e->getMessage());
}
...
...
@@ -406,6 +406,6 @@ class CleanupCommand extends AdminCommand