feat: 26&timeout&keystore
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user