diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index e6fca850..a03f3b73 100755 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -379,11 +379,11 @@ function tel_notif($username, $status) $message = "درخواست شما {$status} شد."; $user = User::where('user_name', $username)->whereNotNull('chatid')->select('chatid', 'user_name')->first(); if ($user) { - Http::get("https://api.wwwapp.ir/telegran_send.php", [ - 'botToken' => "7467099619:AAF2V6yYcbAb8oSIRSCyH5i2GKfdWVO3a7k", - 'chatId' => $user->chatid, - 'message' => $message, - ]); + try { + Http::withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [ + "chat_id" => $user->bale, + 'text' => $message, + ]); + } catch (\Exception $e) {} } - }