function myCustomErrorHandler(int $errNo, string $errMsg, string $file, int $line) {}
set_error_handler('myCustomErrorHandler');
foreach($arUsers as $user) {
try {
$bot->send($user['chat_id']);
} catch (Throwable $e) {
$bot->run(
"DELETE FROM `users` WHERE `chat_id` = :chat_id",
array('chat_id' => $user['chat_id']),
PDO::FETCH_ASSOC
);
continue;
}
}