--- /dev/null
+<?php declare(strict_types=1);
+
+(PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('cli only');
+
+require_once('common.php');
+
+$id = $argv[1];
+$what = $argv[2];
+
+if ($what == "hashdone") {
+ getTelegram()->sendMessage(
+ [
+ 'chat_id' => $id,
+ 'text' => 'Hash list rebuild completed, processing deltas...'
+ ]
+ );
+}
+
+if ($what == "deltasdone") {
+ getTelegram()->sendMessage(
+ [
+ 'chat_id' => $id,
+ 'text' => "Rebuild complete. " . $argv[3] . " additions, " . $argv[4] . " deletions, and " . $argv[5] . " moves."
+ ]
+ );
+}
+
+if ($what == "nochange") {
+ getTelegram()->sendMessage(
+ [
+ 'chat_id' => $id,
+ 'text' => "Rebuild complete. No changes detected."
+ ]
+ );
+}