fix some issu
This commit is contained in:
@@ -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", [
|
||||
|
||||
Reference in New Issue
Block a user