add username to telegram notif

This commit is contained in:
Ibnu Maksum 2024-04-22 10:28:34 +07:00
parent 4d6041f614
commit 31b710e03c
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -171,7 +171,7 @@ if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
App::setToken(_get('stoken'), $id);
file_put_contents($path, $m);
_log("Customer $tur[customer_id] $tur[username] extend for $days days", "Customer", $user['id']);
Message::sendTelegram("#u$c[username] #extend #".$p['type']." \n" . $p['name_plan'] .
Message::sendTelegram("#u$user[username] #extend #".$p['type']." \n" . $p['name_plan'] .
"\nLocation: " . $p['routers'] .
"\nNew Expired: " . Lang::dateAndTimeFormat($expiration, $tur['time']));
r2(U . 'home', 's', "Extend until $expiration");