From bbc830de26e5172848acb5749625633e7b7c8142 Mon Sep 17 00:00:00 2001 From: ibnux Date: Sun, 12 Mar 2023 10:24:31 +0700 Subject: [PATCH] fix old deprecated code --- system/boot.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/system/boot.php b/system/boot.php index 2b55909b..8c221a87 100644 --- a/system/boot.php +++ b/system/boot.php @@ -228,6 +228,23 @@ function alphanumeric($str, $tambahan = "") return preg_replace("/[^a-zA-Z0-9" . $tambahan . "]+/", "", $str); } + +function sendTelegram($txt) +{ + Message::sendTelegram($txt); +} + +function sendSMS($phone, $txt) +{ + Message::sendSMS($phone, $txt); +} + +function sendWhatsapp($phone, $txt) +{ + Message::sendWhatsapp($phone, $txt); +} + + function time_elapsed_string($datetime, $full = false) { $now = new DateTime;