feat: 26&timeout&keystore

This commit is contained in:
hashbro
2026-09-24 03:00:57 +08:00
parent f9fd356679
commit cc66811dbd
18 changed files with 303 additions and 16 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ class TelegramNotifier
}
try {
$resp = Http::timeout(8)->get("https://api.telegram.org/bot{$token}/getMe");
$resp = Http::connectTimeout(20)->timeout(30)->get("https://api.telegram.org/bot{$token}/getMe");
if (! $resp->successful() || $resp->json('ok') !== true) {
return null;
}
@@ -157,7 +157,7 @@ class TelegramNotifier
}
try {
$resp = Http::timeout(15)->asForm()->post(
$resp = Http::connectTimeout(20)->timeout(60)->asForm()->post(
"https://api.telegram.org/bot{$token}/sendMessage",
[
'chat_id' => $chatId,