Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set('Europe/Rome');
- if ($msg == '.bl') {
- $contacts = $MadelineProto
- ->contacts
- ->getBlocked(['offset' => 0, 'limit' => 2147483647]) ['blocked'];
- $id = 'âšī¸ <b>Lista utenti bloccati</b>' . PHP_EOL;
- foreach ($contacts as $asa) {
- $n = $MadelineProto->get_info($asa['user_id']) ['User']['first_name'];
- $date = date('d-m-y', $asa['date']);
- $a = $asa['user_id'];
- $m = "<a href='tg://user?id=$a'>" . htmlspecialchars($n) . "</a>";
- $id .= 'âĸ ' . $m . ' <code>' . $asa['user_id'] . '</code> <i>' . $date . '</i>' . PHP_EOL;
- }
- $MadelineProto
- ->messages
- ->editMessage(['peer' => $chatID, 'message' => $id, 'parse_mode' => 'HTML', 'id' => $msgid], ['noResponse' => true]);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement