improve message update

This commit is contained in:
mercury
2024-04-16 17:51:23 +04:00
parent 759cf1973a
commit 068f2d0cc9
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -999,9 +999,10 @@ class Bot
if (!empty($last) && $last != $this->last && $last != $current) {
$this->last = $last;
$diff = array_slice(explode("\n", $last), 0, count(explode("\n", $last)) - count(explode("\n", $current)));
$diff = array_slice($diff, 0, 10);
if (!empty($diff)) {
foreach ($c['admin'] as $k => $v) {
$this->send($v, "update:\n{$diff[0]}");
$this->send($v, implode("\n", $diff));
}
}
}
+2
View File
@@ -1,3 +1,5 @@
16.04.2024 v1.30.1
- улучшение сообщения об обновлениях
16.04.2024 v1.30
- улучшение скрипта обновления
16.04.2024 v1.29