feat: 26&timeout&keystore
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ Artisan::command('telegram:set-webhook {url?}', function (?string $url = null) {
|
||||
$payload['secret_token'] = $secret;
|
||||
}
|
||||
$this->info('Setting Telegram webhook URL: '.$url);
|
||||
$resp = Http::timeout(20)
|
||||
$resp = Http::connectTimeout(20)->timeout(60)
|
||||
->asJson()
|
||||
->post("https://api.telegram.org/bot{$token}/setWebhook", $payload);
|
||||
if ($resp->successful() && ($resp->json('ok') === true)) {
|
||||
|
||||
Reference in New Issue
Block a user