We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2dc582 commit 4bd4129Copy full SHA for 4bd4129
server.php
@@ -85,6 +85,7 @@
85
StartUpFixes::fix();
86
foreach ($sessions as $session) {
87
StartUpFixes::removeBrokenIpc($session);
88
+ StartUpFixes::removeOldSettings($session);
89
}
90
new TelegramApiServer\Server\Server(
91
$options,
src/Migrations/StartUpFixes.php
@@ -20,4 +20,13 @@ public static function removeBrokenIpc(string $session): void
20
unlink($file);
21
22
23
+
24
+ public static function removeOldSettings(string $session): void
25
+ {
26
+ info('Removing old settings file to fix startup if db settings changed' . PHP_EOL);
27
+ foreach (glob(ROOT_DIR . "/$session/safe.php*") as $file) {
28
+ info("removing: $file");
29
+ unlink($file);
30
+ }
31
32
0 commit comments