fix some issu

This commit is contained in:
2026-08-26 21:47:09 +03:30
parent 74cc50149f
commit 40b185187c
14 changed files with 179 additions and 72 deletions
@@ -775,7 +775,7 @@ TXT;
private function sendBale(string $token, string $chatId, string $message): \Illuminate\Http\Client\Response
{
return Http::withOptions(Controller::httpClientOptions())
return Http::withOptions(Controller::httpClientOptions([], 6.0))
->withoutVerifying()
->timeout(6)
->post("https://tapi.bale.ai/bot{$token}/sendMessage", [
@@ -787,7 +787,7 @@ TXT;
private function sendTelegram(string $token, string $chatId, string $message): \Illuminate\Http\Client\Response
{
// تلگرام مستقیم از سرور اغلب فیلتر است — از پروکسی wwwapp استفاده می‌شود (مثل کد قدیمی)
return Http::withOptions(Controller::httpClientOptions())
return Http::withOptions(Controller::httpClientOptions([], 6.0))
->timeout(6)
->get('https://api.wwwapp.ir/telegran_send.php', [
'chatId' => $chatId,
@@ -798,7 +798,7 @@ TXT;
private function sendRubika(string $token, string $chatId, string $message): \Illuminate\Http\Client\Response
{
return Http::withOptions(Controller::httpClientOptions())
return Http::withOptions(Controller::httpClientOptions([], 6.0))
->withoutVerifying()
->timeout(6)
->post("https://botapi.rubika.ir/v3/{$token}/sendMessage", [