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} شد."; $message = "درخواست شما {$status} شد.";
$user = User::where('user_name', $username)->whereNotNull('chatid')->select('chatid', 'user_name')->first(); $user = User::where('user_name', $username)->whereNotNull('chatid')->select('chatid', 'user_name')->first();
if ($user) { if ($user) {
Http::get("https://api.wwwapp.ir/telegran_send.php", [ try {
'botToken' => "7467099619:AAF2V6yYcbAb8oSIRSCyH5i2GKfdWVO3a7k", Http::withoutVerifying()->post('https://tapi.bale.ai/1482838710:sYbLzby0tuLRzHvP4d3LsbcNwg2sjSDLTAU/sendMessage', [
'chatId' => $user->chatid, "chat_id" => $user->bale,
'message' => $message, 'text' => $message,
]); ]);
} catch (\Exception $e) {}
} }
} }