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