NASER send in bale except telegram

This commit is contained in:
Montzar.ah.01
2026-05-03 14:50:16 +00:00
parent afd07f611a
commit c3dede5c6f
+6 -6
View File
@@ -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) {}
}
}