NASER send in bale except telegram
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user