NASER fix some issue
This commit is contained in:
@@ -72,7 +72,7 @@ namespace App\Http\Controllers;
|
||||
// ]);
|
||||
if ($admin->bale) {
|
||||
try {
|
||||
$response = Http::post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
$response = Http::withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
"chat_id" => $admin->bale,
|
||||
'text' => $message,
|
||||
]);
|
||||
@@ -86,7 +86,7 @@ namespace App\Http\Controllers;
|
||||
}
|
||||
}else{
|
||||
try {
|
||||
$response = Http::post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
$response = Http::withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
"chat_id" => '985309723',
|
||||
'text' => $message,
|
||||
]);
|
||||
@@ -101,12 +101,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
foreach ($admins as $admin) {
|
||||
try{
|
||||
Http::/*withOptions([
|
||||
'curl' => [
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
||||
CURLOPT_TCP_FASTOPEN => 1,
|
||||
]
|
||||
])->*/withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
Http::withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
|
||||
"chat_id" => $admin->bale,
|
||||
'text' => $message,
|
||||
]);
|
||||
@@ -124,8 +119,7 @@ namespace App\Http\Controllers;
|
||||
"chat_id" => $admin->bale,
|
||||
'text' => $message,
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
} catch (\Exception $e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user